I couldn't get -force_load to work. I keep getting a linker error of
basically not under standing the command.
However, I found an interesting workaround to trick the linker to
include the missing category implementations. No need for -all_load
to get Three20 working.
Just add something like the following to the category file.
NSStringAdditions.h
// workaround to avoid using -all_load
// ref:
http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-librarysort-of
void useThree20CoreNSStringAdditions();
@interface NSObject (NSStringAdditions)
@end
NSStringAdditions.m
void useThree20CoreNSStringAdditions(){
useThree20CoreNSDataAdditions();
}
@implementation NSObject (NSStringAdditions)
@end
Then before using the unrecognized selector, call
"useThree20CoreNSStringAdditions()"