IOS: After input user email and password, app crash

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'

NSData *errorData = error.userInfo[AFNetworkingOperationFailingURLResponseDataErrorKey];
        NSDictionary *serializedFailedBody = [NSJSONSerialization JSONObjectWithData:errorData options:kNilOptions error:nil];
        NSLog(@"! loginWithUser %@ Failed (status code %d): %@",operation.request.URL,operation.response.statusCode,serializedFailedBody);

Hi @WilliamHu,

Thanks for posting! I’ve shared this with our mobile team.

Thanks,
David

1 Like

After choose your own wifi network and input the password it goes into this page and crash on "Check for interest connectivity"

error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'
-(void)getDevices:(void (^)(NSArray *sparkDevices, NSError *error))completion

Thanks for reporting. This is a simple fix, I’ll try to get to it today.

1 Like

OK, please update iOS Cloud SDK to v0.3.3 (run pod update) and let me know if you still have any issues. Thanks