Xcode: include ObjectiveC categories int static library

If you need to include ObjectiveC categories or other framework using ObjectiveC categories ( for example JSON framework ) into your own static library you probably get


-[__NSCFDictionary JSONRepresentation]: unrecognized selector sent to instance


In your project that using your static library you need to set in Project Settings for "Other Linker Flags" property two additional flags:

-ObjC
-all_load


No comments:

Post a Comment