objective c - RestKit RKObjectLoader objectLoader didLoadObjects failed on device -


i using restkit , stuck problem. i've tried quite lot of things solve this, return no success. :)

- (void)objectloader:(rkobjectloader*)objectloader didloadobjects:(nsarray*)objects {     nslog(@"objects count: %d.", [objects count]);     nslog(@"editions count: %d.", [editions count]);     [editions release];     editions = [objects retain];     nslog(@"objects count: %d.", [objects count]);     nslog(@"editions count: %d.", [editions count]);     edition *edition = [objects objectatindex:0];     nslog(@"edition title: %@.", [edition title]); } 

the console above code is:

2012-03-07 18:02:58.477 appname[2870:207] objects count: 1. 2012-03-07 18:02:58.478 appname[2870:207] editions count: 0. 2012-03-07 18:02:58.479 appname[2870:207] objects count: 1. 2012-03-07 18:02:58.479 appname[2870:207] editions count: 1. 2012-03-07 18:02:58.480 appname[2870:207] *** -[nscfarray title]: unrecognized selector sent instance 0x1ada60 2012-03-07 18:02:58.481 appname[2870:207] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '*** -[nscfarray title]: unrecognized selector sent instance 0x1ada60' 2012-03-07 18:02:58.483 appname[2870:207] stack: (     827948665,     859256445,     827961723,     827960065,     827553488,     13253,     166217,     827523067,     873795279,     827497493,     827495649,     865677531,     865677703,     806360113,     806353243,     10471,     10396 ) terminate called after throwing instance of 'nsexception' program received signal:  “sigabrt”. program received signal:  “sigabrt”. 

however, works on simulator:

2012-03-07 18:24:20.215 appname[46315:207] objects count: 4. 2012-03-07 18:24:20.215 appname[46315:207] editions count: 0. 2012-03-07 18:24:20.216 appname[46315:207] objects count: 4. 2012-03-07 18:24:20.216 appname[46315:207] editions count: 4. 2012-03-07 18:24:20.216 appname[46315:207] edition title: string. 

please help.. kind of responses appreciated. thank you.

ps: i've run rktwitter sample. result same! great on simulator resulting same kind of error on device.

pps: i've tried rktwitter sample master (xcode4) , 0.9-stable(xcode3) branch. result same. ok on simulator, failed on devices.

had same issue porting app below 10.7, seems happen wrapping nsarray *objects in second array

(  (    <item>    <item>    <item>  ) ) 

this happened on 10.6 target tho. getting real objects simple seeing if first index of array index , using that. bug/quirk guess. or im doing wrong knows.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -