With SquareReaderSDK 1.6.2
On iPadOS 15, iPad Pro 5th gen
On iPadOS 15, the following screen gets presented.
On iPadOS 16 Beta latest, iPad Pro 5th gen
On iPadOS 16, we see this crash.
Please see Line 6, 8, 9 and 10 of the call stack.
*** First throw call stack:
(
0 CoreFoundation 0x000000011115e378 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x000000010eebcbaf objc_exception_throw + 48
2 Foundation 0x00000001121576ac _userInfoForFileAndLine + 0
3 Check-In 0x00000001031aea44 +[NSManagedObjectContext(ActiveRecord) contextForCurrentThread] + 132
4 Check-In 0x00000001031aeaf8 +[NSManagedObject(ActiveRecord) entity] + 120
5 CoreData 0x000000010d554ac3 -[NSManagedObject initWithContext:] + 56
6 SquareReaderSDK 0x00000001195f2c3b $s9LogDriver13CoreDataStoreC8storeURL0F4Type14flushThreshold18saveOnResignActive7monitorACyxG10Foundation0G0V_SSAA05FlushJ0VSbAA10Monitoring_pSgtcfc + 1035
7 libswiftCore.dylib 0x00000001159eceb4 $sSTsE7forEachyyy7ElementQzKXEKF + 420
8 SquareReaderSDK 0x00000001195f456b $s9LogDriver13CoreDataStoreCMa + 539
9 SquareReaderSDK 0x00000001195f6470 $s9LogDriver13CoreDataStoreCMa + 8480
10 SquareReaderSDK 0x000000011959f899 $s24SquareNetworkLoggingImpl0B13RequestLoggerCMa + 793
11 CoreData 0x000000010d578487 developerSubmittedBlockToNSManagedObjectContextPerform + 151
12 libdispatch.dylib 0x000000011041bf5b _dispatch_client_callout + 8
13 libdispatch.dylib 0x0000000110423d41 _dispatch_lane_serial_drain + 1064
14 libdispatch.dylib 0x0000000110424b1b _dispatch_lane_invoke + 441
15 libdispatch.dylib 0x0000000110432f13 _dispatch_workloop_worker_thread + 959
16 libsystem_pthread.dylib 0x0000000114b0ffd0 _pthread_wqthread + 326
17 libsystem_pthread.dylib 0x0000000114b0ef57 start_wqthread + 15
)
*** Assertion failure in +[NSManagedObjectContext contextForCurrentThread], NSManagedObject+ActiveRecord.m:45
2022-09-09 11:37:09.597373-0500 Check-In[1230:411341] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '[RKManagedObjectStore defaultObjectStore] cannot be nil'
*** First throw call stack:
(0x19b402338 0x19487fa68 0x195e3e81c 0x100ed1960 0x100ed19f8 0x1a2abbbd4 0x107ef7a0c 0x195442630 0x107ef9160 0x107f036bc 0x1077dad50 0x1a2ae1c20 0x1035a60c8 0x1035ae178 0x1035aeea0 0x1035bbcbc 0x1e7b82df8 0x1e7b82b98)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '[RKManagedObjectStore defaultObjectStore] cannot be nil'
terminating with uncaught exception of type NSException