IPhone simulator does not see my NSString category

I have an application with the following category for NSString:

@interface NSDate(ISO8601Parsing)



//This method is the one that does all the work. All the others are convenience methods.

+ (NSDate *)dateWithString:(NSString *)str strictly:(BOOL)strict getRange:(out NSRange *)outRange;

+ (NSDate *)dateWithString:(NSString *)str strictly:(BOOL)strict;



//Strictly: NO.

+ (NSDate *)dateWithString:(NSString *)str timeSeparator:(unichar)timeSep getRange:(out NSRange *)outRange;

+ (NSDate *)dateWithString:(NSString *)str timeSeparator:(unichar)timeSep;

+ (NSDate *)dateWithString:(NSString *)str getRange:(out NSRange *)outRange;

+ (NSDate *)dateWithString:(NSString *)str;



@end

The category is in the final application, not in the static library. When I use the application on the iPhone (3GS with iOS4), there are no problems with both the application and the tests. When I use the iPhone simulator, my added methods are not called. Debugging I saw that xcode “skips” the call and returns null, very strange. Any suggestion? Thank you Jean

+5
source share
2 answers

I ran into the same problem when using the code generated by wsdl2objc (see issue ). I solved this by renaming one method:

+ (NSDate *)dateWithString:(NSString *)str

eg,

+ (NSDate *)wsdl2objcDateWithString:(NSString *)str;

API, .

+2

rehos -

, ;

NSDate + ISO8601Parsing.m .h


 +(NSDate *)deserializeNode:(xmlNodePtr)cur

0

All Articles