Hi, recently I just received a crash report from fabric.io. I am new to iOS, I do not really know what does the crash means. Can someone please explain it to me? Thank you very much!
Crashed: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x182287d74 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x1822844d0 abort_with_payload_wrapper_internal + 100
2 libsystem_kernel.dylib 0x1822844fc system_set_sfi_window + 10
3 TCC 0x1854a0498 __TCCAccessRequest_block_invoke_2.80 + 222
4 TCC 0x1854a03b8 __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 682
5 TCC 0x1854a33d4 __tccd_send_block_invoke + 340
6 libxpc.dylib 0x182382f38 _xpc_connection_reply_callout + 80
7 libxpc.dylib 0x182382ea8 _xpc_connection_call_reply + 40
8 libdispatch.dylib 0x1821469a0 _dispatch_client_callout + 16
9 libdispatch.dylib 0x1821550d4 _dispatch_queue_override_invoke + 644
10 libdispatch.dylib 0x182156a50 _dispatch_root_queue_drain + 540
11 libdispatch.dylib 0x1821567d0 _dispatch_worker_thread3 + 124
12 libsystem_pthread.dylib 0x18234f100 _pthread_wqthread + 1096
13 libsystem_pthread.dylib 0x18234ecac start_wqthread + 4
It means two things:
Frame 4 of the backtrace,
, indicates that your app tried to do something that’s privacy-sensitive (access photos, access contacts, and so on) and the system was unable to ask the user to authorise that action because your app’s__CRASHING_DUE_TO_PRIVACY_VIOLATION__
does not contain the appropriate justification string.Info.plist
Your third-party crash reporter has lost some info that would help you debug this more easily, namely, the specific privacy-sensitive action that triggered this.
Each privacy-sensitive subsystem has its own
Info.plist
key. For example, the Photos framework uses
NSPhotoLibraryUsageDescription
. You’ll have to track down the subsystem that’s causing this problem, find the appropriate
Info.plist
key, and then add that to your app.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"