Hi,
We started using Plus+ and to get everything to build required us to drop -all_load, otherwise we end up with duplicate errors.
Now everything appeared to be fine until it came to using CCLabel, at that point in our app we got this error:
-[NSCFString sizeWithZFont:]: unrecognized selector sent to instance 0x22c388
2010-08-17 19:03:27.021 [3562:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString sizeWithZFont:]: unrecognized selector sent to instance 0x22c388'
Having a look around the forum for similar issues, someone said that FontLabel would need to be built as a static library and then included in the target app. So had a go at this creating a FontLabel Static Library, this compiles fine and creates the libFontLabel.a, I then dragged this into the cocos2d libraries target (also removed all the ZFont headers/source from cocos2d libraries target).
Our project started from a cocos2d 0.99.4 Template.
The above didn't seem to help however it could be we are missing something obvious here as it's a first time even creating a Static Library or we are simply tackling this issue completely wrong.
Is it possible to exclude a library from being added to a target? I am presuming that the -all_load makes both the app and the cocos2d library add the The Plus+ library which causes the duplication error? As ideally would prefer to go back to original template build settings rather than creating a mess.
Any advice appreciated
Joe