We are receiving these crash reports on iOS 11 (they occur on a background thread on the "com.apple.root.default-qos" queue).
libsystem_kernel.dylib 0x1831a00a8 __abort_with_payload + 8
libsystem_kernel.dylib 0x18319b100 abort_with_payload_wrapper_internal + 100
libsystem_kernel.dylib 0x18319b12c system_set_sfi_window + 10
TCC 0x1860ed99c __TCCAccessRequest_block_invoke_2.85 + 222
TCC 0x1860ed8bc __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 706
TCC 0x1860f113c __tccd_send_block_invoke + 316
libxpc.dylib 0x1832eda0c _xpc_connection_reply_callout + 60
libxpc.dylib 0x1832ed948 _xpc_connection_call_reply_async + 88
libdispatch.dylib 0x18300d758 _dispatch_client_callout3 + 16
libdispatch.dylib 0x183025060 _dispatch_mach_msg_async_reply_invoke$VARIANT$mp + 324
libdispatch.dylib 0x183013f54 _dispatch_queue_override_invoke$VARIANT$mp + 400
libdispatch.dylib 0x18301a1c8 _dispatch_root_queue_drain + 596
libdispatch.dylib 0x183019f10 _dispatch_worker_thread3 + 120
libsystem_pthread.dylib 0x1832b3130 _pthread_wqthread + 1268
libsystem_pthread.dylib 0x1832b2c30 start_wqthread + 4
The stack trace doesn't help much except for the __CRASHING_DUE_TO_PRIVACY_VIOLATION__ symbol. We do have these keys specified in Info.plist:
- NSPhotoLibraryUsageDescription
- NSCameraUsageDescription
- NSLocationWhenInUseUsageDescription
I am pretty sure we don't try to access contacts, health data or anything else requiring a permission from users. Also, we haven't been able to reproduce the problem during our internal testing. Still, it looks like in certain rare circumstances (for about 1 in 1500 users) the app is trying to access some private data.
Does anybody have a clue how to debug and fix these privacy violation crashes? Can it be a 3rd party keyboard extension, a data detector in a Safari view controller or anything like that?
Thanks in advance.