Jawbone/UPPlatform_iOS_SDK

download Moves Data crash

ahjin opened this issue · 1 comments

crash at:

+ (void)getMovesFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion
{
..........
NSArray *jsonItems = response.data[@"items"]; <----- crash here
..........
}

console log:

[__NSCFArray objectForKey:]: unrecognized selector sent to instance 0x17f6f2f0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFArray objectForKey:]: unrecognized selector sent to instance 0x17f6f2f0'

This should no longer be an issue. Likely the server was returning an array instead of a dictionary. Re-open if this persists.