This is a linker error in which category methods declared in their own compilation unit are not properly bound to the application. See Apple Technical Note:
Creating Objective-C Static Libraries with Categories
You must either specify the -all_load linker -all_load in your application, or the hack method would have to define a macro that defines a dummy class and implementation, and call this macro in each category implementation:
And use it as follows to implement your category:
FIX_CATEGORY_LINKER_BUG(NSStringMyAdditions) @implementation NSString (MyAdditions) // ...
Mike weller
source share