Hi,
I am experiencing a bug in iOS SDK where it frequently crashes if internet access is not available.
SDK version: 1.93
Please find console log from XCode below:
2016-08-13 18:19:01.934 TestApp[52646:2037723] -[Scio init]
2016-08-13 18:19:02.017 TestApp[52646:2037723] centralManagerDidUpdateState
2016-08-13 18:19:29.291 TestApp[52646:2038241] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘data parameter is nil’
*** First throw call stack:
(
0 CoreFoundation 0x0000000113211d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001121dddeb objc_exception_throw + 48
2 CoreFoundation 0x0000000113211cbd +[NSException raise:format:] + 205
3 Foundation 0x00000001103394d1 +[NSJSONSerialization JSONObjectWithData:options:error:] + 67
4 ScioSDK 0x000000011217c8a8 -[CPScioCloud tryJSON:withError:] + 82
5 ScioSDK 0x000000011217d5d4 __36-[CPScioCloud getModels:completion:]_block_invoke + 944
6 CFNetwork 0x0000000114242b49 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 19
7 CFNetwork 0x00000001142550f2 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 302
8 Foundation 0x00000001102bb630 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
9 Foundation 0x00000001101f6805 -[NSBlockOperation main] + 101
10 Foundation 0x00000001101d9725 -[__NSOperationInternal _start:] + 646
11 Foundation 0x00000001101d9336 __NSOQSchedule_f + 194
12 libdispatch.dylib 0x0000000113de03eb _dispatch_client_callout + 8
13 libdispatch.dylib 0x0000000113dc682c _dispatch_queue_drain + 2215
14 libdispatch.dylib 0x0000000113dc5d4d _dispatch_queue_invoke + 601
15 libdispatch.dylib 0x0000000113dc8996 _dispatch_root_queue_drain + 1420
16 libdispatch.dylib 0x0000000113dc8405 _dispatch_worker_thread3 + 111
17 libsystem_pthread.dylib 0x000000011411d4de _pthread_wqthread + 1129
18 libsystem_pthread.dylib 0x000000011411b341 start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException