When attempting to fetch a record on iOS, the app crashed. I got the relevant thread stack trace from the crash report (pasted below the question). We don't run into the same problem on tvOS, and I see a possible bad cast exception in this stack trace.
Thread 1 name: Dispatch queue: com.apple.cloudkit.operation-C8EEB8D655B9994E.callback
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x000000019abe5ec4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000019ab011d8 pthread_kill$VARIANT$mp + 136
2 libsystem_c.dylib 0x000000019aa55844 abort + 100
3 libc++abi.dylib 0x000000019abae7d4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x000000019abae9c4 demangling_unexpected_handler+ 6596 () + 0
5 libobjc.A.dylib 0x000000019ab16268 _objc_terminate+ 25192 () + 140
6 libc++abi.dylib 0x000000019abbb304 std::__terminate(void (*)+ 58116 ()) + 16
7 libc++abi.dylib 0x000000019abbb29c std::terminate+ 58012 () + 44
8 libdispatch.dylib 0x000000019aabb198 _dispatch_client_callout + 36
9 libdispatch.dylib 0x000000019aa67404 _dispatch_lane_serial_drain$VARIANT$mp + 608
10 libdispatch.dylib 0x000000019aa67e28 _dispatch_lane_invoke$VARIANT$mp + 468
11 libdispatch.dylib 0x000000019aa71314 _dispatch_workloop_worker_thread + 588
12 libsystem_pthread.dylib 0x000000019ab0ab88 _pthread_wqthread + 276
13 libsystem_pthread.dylib 0x000000019ab0d760 start_wqthread + 8
iOS Crashes from Fetch callback
Re: iOS Crashes from Fetch callback
Thank you for the bug report. When you get a moment can you reply with the corresponding C# code? I will attempt to reproduce from my end.
Re: iOS Crashes from Fetch callback
Hi, we actually grabbed the newer version of the plugin after filing this bug (it was available through the automated bug report response). After using that, it seems like this issue is resolved.