I have weird problem running logic unit test on my app. My app is build using some parts of three20 library. When I run the app in the Simulator, everything works well. But when I fire my unit tests, it crashes with exception
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString md5Hash]: unrecognized selector sent to instance 0xf769c4'"
md5Hash method is defined in libThree20Core.a as in a category class to NSString and NSData and is called somewhere within three20, not in my class or unit test.
My test target is made dependent on three20 and set to link against three20. It compiles and links with no errors, but then it crashes with exception above. Interesting is that there's not a problem with other classes/methods from the library, just those specified as categories (or at least this one).
I'm googling around all day, trying every solution proposed here and there, but still cannot make it work. Did anybody experience similar issue? Any help is appreciated! Thanks.
RESOLVED: -ObjC and -all_load linker flags were missing!