The problem is that Apptentive uses categories, like setup
on NSManagedObject
, but in your system those categories are not getting loaded. This issue is a somewhat difficult issue to understand, and the solution is murky and dependent on the version of Xcode you are using.
To force categories to load using a sledge hammer, add this to your "Other linker flags":
-all_load
If that works, then try this much better solution (changing "" to its real name:
-force_load $(BUILD_PRODUCTS_DIR)/<apptentive_library_name>.a
If that works, then you can try just using this flag:
-ObjC
If you search on this site for the terms "all_load", "force_load", and "-ObjC" you'll find oodles of posts.