i'm new in ios programminng. want use feedback system apptentive sdk in first app. there no errors while compiling, when start make connection apptentive server, error message:
2013-07-11 15:32:19.438 wishes[11015:c07] loading atwebclient_metrics_bootstrap 2013-07-11 15:32:19.438 wishes[11015:c07] loading atwebclient_surveyadditions_bootstrap 2013-07-11 15:32:19.439 wishes[11015:c07] loading aturlconnection_private_bootstrap 2013-07-11 15:32:19.439 wishes[11015:c07] loading atwebclient_private_bootstrap 2013-07-11 15:32:19.439 wishes[11015:c07] loading atwebclient_messagecenter_bootstrap 2013-07-11 15:32:19.440 wishes[11015:c07] loading attoolbar_bootstrap 2013-07-11 15:32:19.442 wishes[11015:1303] [info] setting data manager 2013-07-11 15:32:19.598 wishes[11015:1d03] [info] creating conversation **2013-07-11 15:32:19.616 wishes[11015:c07] -[nsmanagedobject setup]: unrecognized selector sent instance 0xa060110 2013-07-11 15:32:19.618 wishes[11015:c07] ** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[nsmanagedobject setup]: unrecognized selector sent instance 0xa060110' ** first throw call stack: (0x2ef4012 0x23a0e7e 0x2f7f4bd 0x2ee3bbc 0x2ee394e 0xbc347 0xbc29f 0xf8f5b3 0x2eb3376 0x2eb2e06 0x2e9aa82 0x2e99f44 0x2e99e1b 0x2e4e7e3 0x2e4e668 0x26bffc 0x2afd 0x2a25) libc++abi.dylib: terminate called throwing exception**
while searching forums found, problem of coredata, apptentive sdk uses, write, i'm new in ios developing, didn't use codedata till now.
the code start connection:
atconnect *connection = [atconnect sharedconnection]; connection.apikey = @"myapikey"; [connection presentmessagecenterfromviewcontroller:self];
when uncomment line apikey assign, there no error.
please me if can.
the problem apptentive uses categories, setup
on nsmanagedobject
, in system categories not getting loaded. issue difficult issue understand, , solution murky , dependent on version of xcode using.
to force categories load using sledge hammer, add "other linker flags":
-all_load
if works, try better solution (changing "" real name:
-force_load $(build_products_dir)/<apptentive_library_name>.a
if works, can try using flag:
-objc
if search on site terms "all_load", "force_load", , "-objc" you'll find oodles of posts.
Comments
Post a Comment