DISABLE ADBLOCK

ADBlock is blocking some content on the site

ADBlock errore
 Checked

Question

I used to use static library these days and met lots of problems. I found an document and which puzzled me. The links tells the apple's -ObjC linker's bug for 64-bit and iPhone OS applications, and this line "For 64-bit and iPhone OS applications, there is a linker bug that prevents -ObjC from loading objects files from static libraries that contain only categories and no classes" really make me confused. My question is what is "the static libraries that contain only categories and no classes"?

I write a category which I think it fit the condition but I works well without -all_load linker flag. Here is my category.

@interface NSString (Len)

- (NSUInteger)len ;

@end

@implementation NSString (Len)

- (NSUInteger)len
{
    return [self length] ;
}

@end

Thank you for answer !

Solution

This is very old bug (as I remember in Xcode 3.4+) and already fixed many releases ago.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow