Invalid address - swift

My app is crashing a lot lately and it's throwing this as an error:
NSOperationQueue 0x2806fd260 (QOS: UNSPECIFIED) EXC_BAD_ACCESS
KERN_INVALID_ADDRESS 0x0000000000000000.
I can't find the call that causes this problem. Can someone help me solve this problem please?
This is the crash stacktrace:
0 AlamofireNetworkLogger 0x10203c7b4 (Missing)
1 AlamofireNetworkLogger 0x10203d910 (Missing)
2 CoreFoundation 0x1829715bc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
3 CoreFoundation 0x182971588 ___CFXRegistrationPost_block_invoke + 64
4 CoreFoundation 0x182970a7c _CFXRegistrationPost + 392
5 CoreFoundation 0x182970728 ___CFXNotificationPost_block_invoke + 96
6 CoreFoundation 0x1828ea524 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1496
7 CoreFoundation 0x1829701d8 _CFXNotificationPost + 696
8 Foundation 0x183358814 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
9 Alamofire 0x101fd7a84 closure #1 in SessionDelegate.urlSession(_:task:didCompleteWithError:) (SessionDelegate.swift:451)
10 Alamofire 0x101fd7460 SessionDelegate.urlSession(_:task:didCompleteWithError:) (SessionDelegate.swift:495)
11 Alamofire 0x101fd83c0 #objc SessionDelegate.urlSession(_:task:didCompleteWithError:) (<compiler-generated>)
12 myApp 0x10157e9d4 __InstrumentURLSessionTaskDidCompleteWithError_block_invoke + 4311443924
13 CFNetwork 0x183183420 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.182 + 252
14 Foundation 0x183464f68 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
15 Foundation 0x183371420 -[NSBlockOperation main] + 72
16 Foundation 0x183370908 -[__NSOperationInternal _start:] + 740
17 Foundation 0x183466cec __NSOQSchedule_f + 272
18 libdispatch.dylib 0x182440a38 _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x1824417d4 _dispatch_client_callout + 16
20 libdispatch.dylib 0x1823e6018 _dispatch_continuation_pop$VARIANT$mp + 412
21 libdispatch.dylib 0x1823e56dc _dispatch_async_redirect_invoke + 600
22 libdispatch.dylib 0x1823f202c _dispatch_root_queue_drain + 372
23 libdispatch.dylib 0x1823f28d0 _dispatch_worker_thread2 + 128
24 libsystem_pthread.dylib 0x1826211b4 _pthread_wqthread + 464
25 libsystem_pthread.dylib 0x182623cd4 start_wqthread + 4

Related

FirebaseApp.configure() crashes in IOS12

I got my app works well in every ios version, however; when updated to ios 12, all users who are in ios 12 get crashed from launching. I am trying to debug and found that FirebaseApp.configure() is causing crash. Although, it works fine with stimulator even run ios 12 and also works fine when i open the open through xcode. I tried to kill the app and opened it again -> got crashed immediately. Here is the crash logs:
Incident Identifier: 2047E97F-A583-4F35-B766-A4577CEC6F53
CrashReporter Key: 220c3e605534bc1c5752d04b41745c2b237ddeb6
Hardware Model: iPhone11,6
Process: CRACC [672]
Path: /private/var/containers/Bundle/Application/3F210234-7C84-46E2-800C-5D7176DD5548/CRACC.app/CRACC
Identifier: Team-LLC.CRACC
Version: 1 (1.5)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: Team-LLC.CRACC [616]
Date/Time: 2018-10-01 20:05:05.9760 -0400
Launch Time: 2018-10-01 20:05:05.5080 -0400
OS Version: iPhone OS 12.0 (16A366)
Baseband Version: 1.00.07
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 9
Application Specific Information:
abort() called
Thread 0:
0 libsystem_kernel.dylib 0x00000001fed439dc __ulock_wait + 8
1 libdispatch.dylib 0x00000001febbcc2c _dispatch_wait_on_address + 136
2 libdispatch.dylib 0x00000001febbd6e8 _dispatch_group_wait_slow + 44
3 CRACC 0x00000001050e23e4 0x104a18000 + 7119844
4 CRACC 0x00000001050df64c 0x104a18000 + 7108172
5 CRACC 0x00000001050de978 0x104a18000 + 7104888
6 CRACC 0x00000001050de584 0x104a18000 + 7103876
7 CRACC 0x00000001050d2cc8 0x104a18000 + 7056584
8 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
9 libdispatch.dylib 0x00000001febbe174 _dispatch_once_callout + 32
10 CRACC 0x00000001050d2a3c 0x104a18000 + 7055932
11 CRACC 0x00000001050d2e7c 0x104a18000 + 7057020
12 CRACC 0x00000001051088a0 0x104a18000 + 7276704
13 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
14 libdispatch.dylib 0x00000001febbe174 _dispatch_once_callout + 32
15 CRACC 0x00000001051086a8 0x104a18000 + 7276200
16 CRACC 0x000000010510a124 0x104a18000 + 7282980
17 Foundation 0x00000001ffb69c10 -[__NSObserver _doit:] + 336
18 Foundation 0x00000001ffc51908 __67-[NSNotificationCenter addObserverForName:object:queue:usingBlock:]_block_invoke + 40
19 CoreFoundation 0x00000001ff122528 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
20 CoreFoundation 0x00000001ff1224e8 ___CFXRegistrationPost_block_invoke + 68
21 CoreFoundation 0x00000001ff121990 _CFXRegistrationPost + 420
22 CoreFoundation 0x00000001ff12161c ___CFXNotificationPost_block_invoke + 100
23 CoreFoundation 0x00000001ff0971b4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1412
24 CoreFoundation 0x00000001ff1210a0 _CFXNotificationPost + 712
25 Foundation 0x00000001ffb3ed34 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
26 CRACC 0x000000010529c0f4 0x104a18000 + 8929524
27 CRACC 0x0000000105297028 0x104a18000 + 8908840
28 CRACC 0x0000000105296788 0x104a18000 + 8906632
29 CRACC 0x0000000104d36a94 0x104a18000 + 3271316
30 CRACC 0x0000000104d37d20 0x104a18000 + 3276064
31 UIKitCore 0x000000022c4e40dc -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 416
32 UIKitCore 0x000000022c4e5888 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3380
33 UIKitCore 0x000000022c4eb580 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1568
34 UIKitCore 0x000000022cd4ae80 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 808
35 UIKitCore 0x000000022cd471e4 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 168
36 UIKitCore 0x000000022cd4aae0 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 252
37 UIKitCore 0x000000022cd4b4c4 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1080
38 UIKitCore 0x000000022cd08bcc __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 776
39 UIKitCore 0x000000022cd08874 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 460
40 UIKitCore 0x000000022cd4d9f0 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 224
41 UIKitCore 0x000000022cd4e53c _performActionsWithDelayForTransitionContext + 120
42 UIKitCore 0x000000022cd4d8a4 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 260
43 UIKitCore 0x000000022cd4682c -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 372
44 UIKitCore 0x000000022c4e99b0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 556
45 UIKitCore 0x000000022c51cdb0 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 376
46 FrontBoardServices 0x0000000201c39720 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 456
47 FrontBoardServices 0x0000000201c45070 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 284
48 FrontBoardServices 0x0000000201c44690 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 72
49 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
50 libdispatch.dylib 0x00000001febbf8d0 _dispatch_block_invoke_direct + 240
51 FrontBoardServices 0x0000000201c7b764 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
52 FrontBoardServices 0x0000000201c7b3d0 -[FBSSerialQueue _performNext] + 448
53 FrontBoardServices 0x0000000201c7ba3c -[FBSSerialQueue _performNextFromRunLoopSource] + 60
54 CoreFoundation 0x00000001ff144a50 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
55 CoreFoundation 0x00000001ff1449cc __CFRunLoopDoSource0 + 92
56 CoreFoundation 0x00000001ff144284 __CFRunLoopDoSources0 + 180
57 CoreFoundation 0x00000001ff13ef64 __CFRunLoopRun + 1032
58 CoreFoundation 0x00000001ff13e844 CFRunLoopRunSpecific + 452
59 GraphicsServices 0x00000002013edbe8 GSEventRunModal + 104
60 UIKitCore 0x000000022c4ed428 UIApplicationMain + 216
61 CRACC 0x0000000104d41d14 0x104a18000 + 3317012
62 libdyld.dylib 0x00000001febf4020 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001fedc1de8 start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x00000001fed4567c stat + 8
1 libsqlite3.dylib 0x00000001ff5dc3e4 0x1ff5b5000 + 160740
2 libsqlite3.dylib 0x00000001ff5db454 0x1ff5b5000 + 156756
3 libsqlite3.dylib 0x00000001ff5da114 0x1ff5b5000 + 151828
4 libsqlite3.dylib 0x00000001ff5f95fc 0x1ff5b5000 + 280060
5 libsqlite3.dylib 0x00000001ff5f650c sqlite3_step + 436
6 CRACC 0x000000010512b734 0x104a18000 + 7419700
7 CRACC 0x000000010512abec 0x104a18000 + 7416812
8 CRACC 0x0000000105129e90 0x104a18000 + 7413392
9 CRACC 0x000000010512a79c 0x104a18000 + 7415708
10 CRACC 0x0000000105142580 0x104a18000 + 7513472
11 CRACC 0x0000000105140ab8 0x104a18000 + 7506616
12 CRACC 0x000000010513625c 0x104a18000 + 7463516
13 CRACC 0x0000000105146bc4 0x104a18000 + 7531460
14 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
15 libdispatch.dylib 0x00000001febbe174 _dispatch_once_callout + 32
16 CRACC 0x00000001051469c8 0x104a18000 + 7530952
17 CRACC 0x000000010514675c 0x104a18000 + 7530332
18 CRACC 0x000000010515e084 0x104a18000 + 7626884
19 ...g_rt.asan_ios_dynamic.dylib 0x000000010863bc18 0x1085f0000 + 310296
20 libdispatch.dylib 0x00000001febbad74 _dispatch_call_block_and_release + 32
21 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
22 libdispatch.dylib 0x00000001febc36fc _dispatch_lane_serial_drain + 552
23 libdispatch.dylib 0x00000001febc4244 _dispatch_lane_invoke + 368
24 libdispatch.dylib 0x00000001febcc524 _dispatch_workloop_worker_thread + 588
25 libsystem_pthread.dylib 0x00000001fedbbb38 _pthread_wqthread + 316
26 libsystem_pthread.dylib 0x00000001fedc1dec start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x00000001fed37b70 swtch_pri + 8
1 ...g_rt.asan_ios_dynamic.dylib 0x0000000108652c78 0x1085f0000 + 404600
2 ...g_rt.asan_ios_dynamic.dylib 0x0000000108635bb0 0x1085f0000 + 285616
3 CRACC 0x00000001050d4d68 0x104a18000 + 7064936
4 ...g_rt.asan_ios_dynamic.dylib 0x000000010863bdf4 0x1085f0000 + 310772
5 libdispatch.dylib 0x00000001febbad74 _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
7 libdispatch.dylib 0x00000001febbf04c _dispatch_queue_override_invoke + 940
8 libdispatch.dylib 0x00000001febcb0f0 _dispatch_root_queue_drain + 348
9 libdispatch.dylib 0x00000001febcb95c _dispatch_worker_thread2 + 120
10 libsystem_pthread.dylib 0x00000001fedbbbd8 _pthread_wqthread + 476
11 libsystem_pthread.dylib 0x00000001fedc1dec start_wqthread + 4
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x00000001fed37a68 mach_msg_trap + 8
1 CoreFoundation 0x00000001ff14441c __CFRunLoopServiceMachPort + 240
2 CoreFoundation 0x00000001ff13f0b8 __CFRunLoopRun + 1372
3 CoreFoundation 0x00000001ff13e844 CFRunLoopRunSpecific + 452
4 Foundation 0x00000001ffb405f0 -[NSRunLoop+ 34288 (NSRunLoop) runMode:beforeDate:] + 304
5 Foundation 0x00000001ffb40494 -[NSRunLoop+ 33940 (NSRunLoop) runUntilDate:] + 152
6 UIKitCore 0x000000022c445cb8 -[UIEventFetcher threadMain] + 140
7 Foundation 0x00000001ffb3f1d0 -[NSThread main] + 72
8 Foundation 0x00000001ffc7bdbc __NSThread__start__ + 1044
9 libsystem_pthread.dylib 0x00000001fedb9a04 _pthread_body + 132
10 libsystem_pthread.dylib 0x00000001fedb9960 _pthread_start + 52
11 libsystem_pthread.dylib 0x00000001fedc1df4 thread_start + 4
Thread 5:
0 libsystem_pthread.dylib 0x00000001fedc1de8 start_wqthread + 0
Thread 6:
0 ...g_rt.asan_ios_dynamic.dylib 0x0000000108652524 0x1085f0000 + 402724
1 ...g_rt.asan_ios_dynamic.dylib 0x000000010864022c 0x1085f0000 + 328236
2 ...g_rt.asan_ios_dynamic.dylib 0x00000001086099ac 0x1085f0000 + 104876
3 libxpc.dylib 0x00000001fee024e4 _xpc_serializer_append + 204
4 libxpc.dylib 0x00000001fedf7d74 _xpc_data_serialize_inline_apply + 64
5 libdispatch.dylib 0x00000001febe91bc _dispatch_data_apply_client_callout + 16
6 libxpc.dylib 0x00000001fedf7630 _xpc_data_serialize + 264
7 libxpc.dylib 0x00000001fedfbc10 _xpc_dictionary_serialize_apply + 236
8 libxpc.dylib 0x00000001fedf9994 _xpc_dictionary_apply_node_f + 164
9 libxpc.dylib 0x00000001fedf9238 _xpc_dictionary_serialize + 176
10 libxpc.dylib 0x00000001fee029d8 _xpc_serializer_pack + 616
11 libxpc.dylib 0x00000001fee0874c _xpc_pipe_pack_message + 136
12 libxpc.dylib 0x00000001fee085fc _xpc_pipe_simpleroutine + 84
13 libxpc.dylib 0x00000001fedebb50 xpc_pipe_simpleroutine + 64
14 libsystem_trace.dylib 0x00000001fedd17cc ___os_activity_stream_reflect_block_invoke + 40
15 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
16 libdispatch.dylib 0x00000001febbf8d0 _dispatch_block_invoke_direct + 240
17 libdispatch.dylib 0x00000001febbf7ac dispatch_block_perform + 116
18 libsystem_trace.dylib 0x00000001fedd1270 _os_activity_stream_reflect + 540
19 libsystem_trace.dylib 0x00000001fedde258 _os_log_impl_stream + 452
20 libsystem_trace.dylib 0x00000001feddde30 _os_log_impl_flatten_and_send + 6204
21 libnetwork.dylib 0x000000020034453c sa_dst_compare_internal + 412
22 libnetwork.dylib 0x000000020021fce0 nw_resolver_endpoint_should_be_before + 732
23 libnetwork.dylib 0x000000020021f884 __nw_resolver_insert_endpoint_block_invoke + 112
24 libnetwork.dylib 0x00000002003b16f8 __nw_array_apply_block_invoke + 56
25 libxpc.dylib 0x00000001fedf04c0 xpc_array_apply + 88
26 libnetwork.dylib 0x000000020021f394 nw_resolver_insert_endpoint + 408
27 libnetwork.dylib 0x00000002002210f8 nw_resolver_host_resolve_callback + 3080
28 libsystem_dnssd.dylib 0x00000001fecdb6a8 handle_addrinfo_response + 416
29 libsystem_dnssd.dylib 0x00000001fecdc0ec ConnectionResponse + 196
30 libsystem_dnssd.dylib 0x00000001fecd98a4 DNSServiceProcessResult + 584
31 ...g_rt.asan_ios_dynamic.dylib 0x000000010863c380 0x1085f0000 + 312192
32 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
33 libdispatch.dylib 0x00000001febbf2dc _dispatch_continuation_pop + 408
34 libdispatch.dylib 0x00000001febcf42c _dispatch_source_invoke2 + 1204
35 libdispatch.dylib 0x00000001febcecac _dispatch_source_invoke + 436
36 libdispatch.dylib 0x00000001febc5444 _dispatch_workloop_invoke2 + 632
37 libdispatch.dylib 0x00000001febc4f30 _dispatch_workloop_invoke + 432
38 libdispatch.dylib 0x00000001febcc524 _dispatch_workloop_worker_thread + 588
39 libsystem_pthread.dylib 0x00000001fedbbb38 _pthread_wqthread + 316
40 libsystem_pthread.dylib 0x00000001fedc1dec start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x00000001fed45928 write + 8
1 CRACC 0x00000001050e9960 0x104a18000 + 7149920
2 CRACC 0x00000001050e9844 0x104a18000 + 7149636
3 CRACC 0x00000001050e9b50 0x104a18000 + 7150416
4 CRACC 0x00000001050e9f70 0x104a18000 + 7151472
5 CRACC 0x00000001050ea034 0x104a18000 + 7151668
6 CRACC 0x00000001050d0fe4 0x104a18000 + 7049188
7 CRACC 0x00000001050d1494 0x104a18000 + 7050388
8 ...g_rt.asan_ios_dynamic.dylib 0x000000010863bc18 0x1085f0000 + 310296
9 libdispatch.dylib 0x00000001febbad74 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x00000001febbc30c _dispatch_client_callout + 20
11 libdispatch.dylib 0x00000001febc36fc _dispatch_lane_serial_drain + 552
12 libdispatch.dylib 0x00000001febc4244 _dispatch_lane_invoke + 368
13 libdispatch.dylib 0x00000001febcc524 _dispatch_workloop_worker_thread + 588
14 libsystem_pthread.dylib 0x00000001fedbbb38 _pthread_wqthread + 316
15 libsystem_pthread.dylib 0x00000001fedc1dec start_wqthread + 4
Thread 8:
0 libsystem_pthread.dylib 0x00000001fedc1de8 start_wqthread + 0
Thread 9 Crashed:
0 libsystem_kernel.dylib 0x00000001fed430e4 __pthread_kill + 8
1 libsystem_c.dylib 0x00000001fec9b074 __abort + 156
2 libsystem_c.dylib 0x00000001fec9afd8 __abort + 0
3 ...g_rt.asan_ios_dynamic.dylib 0x000000010865d1d4 0x1085f0000 + 446932
4 ...g_rt.asan_ios_dynamic.dylib 0x000000010865b9cc 0x1085f0000 + 440780
5 ...g_rt.asan_ios_dynamic.dylib 0x0000000108645790 0x1085f0000 + 350096
6 ...g_rt.asan_ios_dynamic.dylib 0x000000010865ba54 0x1085f0000 + 440916
7 ...g_rt.asan_ios_dynamic.dylib 0x0000000108648370 0x1085f0000 + 361328
8 ...g_rt.asan_ios_dynamic.dylib 0x0000000108647f24 0x1085f0000 + 360228
9 ...g_rt.asan_ios_dynamic.dylib 0x0000000108648394 0x1085f0000 + 361364
10 libsystem_pthread.dylib 0x00000001fedb9a04 _pthread_body + 132
11 libsystem_pthread.dylib 0x00000001fedb9960 _pthread_start + 52
12 libsystem_pthread.dylib 0x00000001fedc1df4 thread_start + 4
Thread 10:
0 libsystem_pthread.dylib 0x00000001fedc1de8 start_wqthread + 0
Thread 9 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000001
x4: 0x0000000000000000 x5: 0x0000000000989680 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000800 x9: 0x0000000000009503 x10: 0x000000002240069b x11: 0x000000023b29fb72
x12: 0x000000023b29fb72 x13: 0x0000000000000009 x14: 0x0000000000000001 x15: 0x0000000000000881
x16: 0x0000000000000148 x17: 0x000000022f9b2888 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000016b848000 x21: 0x0000000000000000 x22: 0x0000000000009503 x23: 0x000000016b8480e0
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x00000001120034c0 lr: 0x00000001fedbab68
sp: 0x0000000112003490 pc: 0x00000001fed430e4 cpsr: 0x00000000
!Here is where i call the function in app delegate:
Try disabling the Address Sanitizer in your scheme

Xcode, last version, getting error on builds and archives

I am having an issue on my Xcode, lots of times I built or archives the project, I get this error :
Process: Xcode [2376] Path:
/Applications/Xcode.app/Contents/MacOS/Xcode Identifier:
com.apple.dt.Xcode Version: 9.2 (13772) Build Info:
IDEFrameworks-13772000000000000~2 App Item ID: 497799835 App
External ID: 825038102 Code Type: X86-64 (Native)
Parent Process: ??? [1] Responsible: Xcode [2376]
User ID: 501
Date/Time: 2018-02-19 13:01:31.507 +0100 OS Version:
Mac OS X 10.13.2 (17C88) Report Version: 12 Anonymous UUID:
86191C10-4328-FD41-CE74-B094E22BEFE9
Time Awake Since Boot: 510 seconds
System Integrity Protection: enabled
Crashed Thread: 45 Dispatch queue: ConcurrentQueue:
-[XCWorkQueueCommandBuiltinInvocation startRunning]_block_invoke
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY
Application Specific Information: ProductBuildVersion: 9C40b Assertion
failed: (sizeBack == listSize), function
_has_code_signature_extended_attribute, file /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-13756/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/BuildTaskPlugIns/CoreBuildTasks/Translators/PBXCp/PBXCp.mm,
line 453.
Thread 0:: Dispatch queue: com.apple.main-thread 0
libsystem_kernel.dylib 0x00007fff57ec07c2 mach_msg_trap + 10 1
libsystem_kernel.dylib 0x00007fff57ebfcdc mach_msg + 60 2
com.apple.CoreFoundation 0x00007fff30488a15
__CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff30487d67 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation
0x00007fff304873d7 CFRunLoopRunSpecific + 487 5 com.apple.HIToolbox
0x00007fff2f794e26 RunCurrentEventLoopInMode + 286 6
com.apple.HIToolbox 0x00007fff2f794b96
ReceiveNextEventCommon + 613 7 com.apple.HIToolbox
0x00007fff2f794914 _BlockUntilNextEventMatchingListInModeWithFilter +
64 8 com.apple.AppKit 0x00007fff2da5ff5f _DPSNextEvent
+ 2085 9 com.apple.AppKit 0x00007fff2e1f5b4c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 10 com.apple.dt.DVTKit 0x000000010f84ff9a -[DVTApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 390 11
com.apple.AppKit 0x00007fff2da54d6d -[NSApplication run]
+ 764 12 com.apple.AppKit 0x00007fff2da23f1a NSApplicationMain + 804 13 libdyld.dylib
0x00007fff57d7a115 start + 1
Thread 1:: Dispatch queue: shared-compile-command-queue (QOS:
UNSPECIFIED) 0 libsystem_kernel.dylib 0x00007fff57ecb41a
read + 10 1 com.apple.Xcode.DevToolsCore 0x0000000122e9a7aa
-[XCWorkQueueCommandLocalSubprocessInvocation handleOutputFileDescriptorActivity] + 86 2
com.apple.Xcode.DevToolsCore 0x0000000122f094f3 -[Xcode3BuildTask
main] + 1042 3 com.apple.Foundation 0x00007fff3259b53e
-[__NSOperationInternal _start:] + 778 4 libdispatch.dylib 0x00007fff57d40d50 _dispatch_client_callout + 8 5 libdispatch.dylib
0x00007fff57d53333 _dispatch_block_invoke_direct + 317 6
libdispatch.dylib 0x00007fff57d40d50
_dispatch_client_callout + 8 7 libdispatch.dylib 0x00007fff57d53333 _dispatch_block_invoke_direct + 317 8
libdispatch.dylib 0x00007fff57d531d6
dispatch_block_perform + 109 9 com.apple.Foundation
0x00007fff3259754c __NSOQSchedule_f + 342 10 libdispatch.dylib
0x00007fff57d40d50 _dispatch_client_callout + 8 11 libdispatch.dylib
0x00007fff57d53e76 _dispatch_continuation_pop + 472 12
libdispatch.dylib 0x00007fff57d4b6cb
_dispatch_async_redirect_invoke + 703 13 libdispatch.dylib 0x00007fff57d42941 _dispatch_root_queue_drain + 515 14
libdispatch.dylib 0x00007fff57d426ed
_dispatch_worker_thread3 + 101 15 libsystem_pthread.dylib 0x00007fff580051ca _pthread_wqthread + 1387 16
libsystem_pthread.dylib 0x00007fff58004c4d start_wqthread + 13
Thread 2:: Dispatch queue: -[IDEExecutionEnvironment
initWithWorkspaceArena:] (QOS: UNSPECIFIED) 0 libsystem_kernel.dylib
0x00007fff57ec9cee __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x00007fff58006662 _pthread_cond_wait + 732 2 com.apple.Foundation
0x00007fff3264acf8 -[__NSOperationInternal _waitUntilFinished:] + 896
3 com.apple.Foundation 0x00007fff3261b765
-[NSOperationQueue waitUntilAllOperationsAreFinished] + 296 4 com.apple.dt.DVTFoundation 0x000000010f12a9c4 -[DVTOperationGroup
main] + 66 5 com.apple.Foundation 0x00007fff3259b53e
-[__NSOperationInternal _start:] + 778 6 com.apple.dt.DVTFoundation 0x000000010f12a977 -[DVTOperationGroup start] + 110 7
com.apple.Foundation 0x00007fff32597567 __NSOQSchedule_f +
369 8 libdispatch.dylib 0x00007fff57d40d50
_dispatch_client_callout + 8 9 libdispatch.dylib 0x00007fff57d53e76 _dispatch_continuation_pop + 472 10
libdispatch.dylib 0x00007fff57d4b6cb
_dispatch_async_redirect_invoke + 703 11 libdispatch.dylib 0x00007fff57d42941 _dispatch_root_queue_drain + 515 12
libdispatch.dylib 0x00007fff57d426ed
_dispatch_worker_thread3 + 101 13 libsystem_pthread.dylib 0x00007fff580051ca _pthread_wqthread + 1387 14
libsystem_pthread.dylib 0x00007fff58004c4d start_wqthread + 13
...
There are also several times, the built goes succesfully... is anyone sperimentig this issue ?

Unable to understand Apple Crash Log with -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:]

I'm unable to understand this crash log from Apple. I have been a few times rejected because of this. They are complaining it's occurred on ipad running latest software 10.3.1. When we double check with on ipad simulator, it's running without crashes.
Last Exception Backtrace:
0 CoreFoundation 0x1848b2fd8 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x183314538 objc_exception_throw + 56
2 CoreFoundation 0x1848b2eac +[NSException raise:format:arguments:] + 104
3 Foundation 0x18534a710 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4 UIKit 0x18ac57454 -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:] + 196
5 UIKit 0x18ac57514 -[UIApplication _systemAnimationFenceCreatingIfNecessary:] + 24
6 UIKit 0x18acb07a0 +[UIWindow _synchronizedDrawingFence] + 116
7 UIKit 0x18ae6e150 +[_UIKeyboardChangedInformation informationForKeyboardUp:withIAV:] + 104
8 UIKit 0x18b1678d4 -[_UIRemoteKeyboards prepareToMoveKeyboard:withIAV:showing:forScreen:] + 464
9 UIKit 0x18aa9fc04 -[UIPeripheralHost(UIKitInternal) setInputViews:animationStyle:] + 820
10 UIKit 0x18aabccf4 -[UIPeripheralHost(UIKitInternal) _restoreInputViewsWithId:animated:] + 584
11 UIKit 0x18ad4fd64 -[UIViewController _restoreInputViewsForPresentation] + 280
12 UIKit 0x18ad2ae3c -[UIPresentationController runTransitionForCurrentState] + 1560
13 UIKit 0x18ad290f8 -[UIPresentationController _dismissWithAnimationController:interactionController:target:didEndSelector:] + 764
14 UIKit 0x18ad4f8c0 -[UIViewController _dismissViewControllerWithAnimationController:interactionController:completion:] + 464
15 UIKit 0x18ab04cd4 -[UIViewController _dismissViewControllerWithTransition:from:completion:] + 600
16 UIKit 0x18aaacb6c -[UIViewController dismissViewControllerWithTransition:completion:] + 1144
17 UIKit 0x18aaac94c -[UIViewController dismissViewControllerWithTransition:completion:] + 600
18 UIKit 0x18ad4eb68 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 524
19 UIKit 0x18aaac6c0 -[UIViewController dismissViewControllerAnimated:completion:] + 152
20 newapp 0x100115628 0x1000b0000 + 415272
21 newapp 0x1001159e8 0x1000b0000 + 416232
22 CFNetwork 0x184ebc1fc __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 32
23 CFNetwork 0x184ed3ef8 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 148
24 Foundation 0x185381804 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
25 Foundation 0x1852c6760 -[NSBlockOperation main] + 96
26 Foundation 0x1852b6b18 -[__NSOperationInternal _start:] + 612
27 Foundation 0x185383ba0 __NSOQSchedule_f + 228
28 libdispatch.dylib 0x18376a9a0 _dispatch_client_callout + 16
29 libdispatch.dylib 0x183778ad4 _dispatch_queue_serial_drain + 928
30 libdispatch.dylib 0x18376e2cc _dispatch_queue_invoke + 884
31 libdispatch.dylib 0x18377aa50 _dispatch_root_queue_drain + 540
32 libdispatch.dylib 0x18377a7d0 _dispatch_worker_thread3 + 124
33 libsystem_pthread.dylib 0x1839731d0 _pthread_wqthread + 1096
34 libsystem_pthread.dylib 0x183972d7c start_wqthread + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x000000018388f224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018388f09c mach_msg + 72
2 CoreFoundation 0x0000000184860e88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018485eadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018478ed94 CFRunLoopRunSpecific + 424
5 GraphicsServices 0x00000001861f8074 GSEventRunModal + 100
6 UIKit 0x000000018aa40130 UIApplicationMain + 208
7 newapp 0x000000010022f390 0x1000b0000 + 1569680
8 libdyld.dylib 0x000000018379d59c start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x000000018388f224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018388f09c mach_msg + 72
2 CoreFoundation 0x0000000184860e88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018485eadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018478ed94 CFRunLoopRunSpecific + 424
5 Foundation 0x00000001852a8d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x00000001852c9b34 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018b3ca5f8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001853a62c8 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x000000018397575c _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018397566c _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000183972d84 thread_start + 4
Thread 2:
0 libsystem_kernel.dylib 0x00000001838ada88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183973274 _pthread_wqthread + 1260
2 libsystem_pthread.dylib 0x0000000183972d7c start_wqthread + 4
Thread 3 name: com.apple.CFStream.LegacyThread
Thread 3:
0 libsystem_kernel.dylib 0x000000018388f224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018388f09c mach_msg + 72
2 CoreFoundation 0x0000000184860e88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018485eadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018478ed94 CFRunLoopRunSpecific + 424
5 CoreFoundation 0x000000018486e78c _legacyStreamRunLoop_workThread + 268
6 libsystem_pthread.dylib 0x000000018397575c _pthread_body + 240
7 libsystem_pthread.dylib 0x000000018397566c _pthread_body + 0
8 libsystem_pthread.dylib 0x0000000183972d84 thread_start + 4
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x000000018388f224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018388f09c mach_msg + 72
2 CoreFoundation 0x0000000184860e88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018485eadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018478ed94 CFRunLoopRunSpecific + 424
5 CFNetwork 0x0000000184f9aca4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6 Foundation 0x00000001853a62c8 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x000000018397575c _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018397566c _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000183972d84 thread_start + 4
Thread 5 name: Dispatch queue: NSOperationQueue 0x170031360 :: NSOperation 0x17024ab30 (QOS: DEFAULT)
Thread 5 Crashed:
0 libsystem_kernel.dylib 0x00000001838ad014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183977334 pthread_kill + 112
2 libsystem_c.dylib 0x00000001838219c4 abort + 140
3 libc++abi.dylib 0x00000001832ed1b0 __cxa_bad_cast + 0
4 libc++abi.dylib 0x0000000183306c04 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x0000000183314820 _objc_terminate() + 124
6 libc++abi.dylib 0x00000001833035d4 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x0000000183303640 std::terminate() + 60
8 libdispatch.dylib 0x000000018376a9b4 _dispatch_client_callout + 36
9 libdispatch.dylib 0x0000000183778ad4 _dispatch_queue_serial_drain + 928
10 libdispatch.dylib 0x000000018376e2cc _dispatch_queue_invoke + 884
11 libdispatch.dylib 0x000000018377aa50 _dispatch_root_queue_drain + 540
12 libdispatch.dylib 0x000000018377a7d0 _dispatch_worker_thread3 + 124
13 libsystem_pthread.dylib 0x00000001839731d0 _pthread_wqthread + 1096
14 libsystem_pthread.dylib 0x0000000183972d7c start_wqthread + 4
The log clearly shows the problem happens on a background thread. You need to perform UI actions on the main queue. Use DispatchQueue.main.async to dismiss the view controller.

App rejection - Crash report says: failed to scene-create in time (badf00d) What is wrong?

my app just got rejected by apple, and I could use some help to figure out what is wrong. The app works fine on all my devices and does not crash. The app synchronizes with iCloud right when it launches. This works fine on my devices, but maybe something is up with that.
Here is the first crash report (symbolicated):
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information:
com.Name.App failed to scene-create in time
Elapsed total CPU time (seconds): 9.250 (user 9.250, system 0.000), 23% CPU
Elapsed application CPU time (seconds): 0.298, 1% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000192f7ceb8 semaphore_wait_trap + 8
1 libsystem_platform.dylib 0x00000001930299e0 _os_semaphore_wait + 20
2 libdispatch.dylib 0x0000000192e5e3e0 _dispatch_barrier_sync_f_slow + 516
3 Foundation 0x0000000182aedccc -[NSUbiquitousKeyValueStore _synchronizeForced:notificationQueue:] + 248
4 Foundation 0x0000000182aedb50 -[NSUbiquitousKeyValueStore synchronize] + 88
5 Cloud-Fryser 0x00000001000dab08 0x1000d0000 + 43784
6 UIKit 0x000000018645ce80 -[UIViewController loadViewIfRequired] + 688
7 UIKit 0x0000000186512374 -[UINavigationController _layoutViewController:] + 60
8 UIKit 0x0000000186512270 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 244
9 UIKit 0x000000018651170c -[UINavigationController _startTransition:fromViewController:toViewController:] + 108
10 UIKit 0x00000001865113b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 636
11 UIKit 0x00000001865110d8 -[UINavigationController __viewWillLayoutSubviews] + 52
12 UIKit 0x0000000186511058 -[UILayoutContainerView layoutSubviews] + 196
13 UIKit 0x0000000186459a28 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 568
14 QuartzCore 0x0000000185db1990 -[CALayer layoutSublayers] + 164
15 QuartzCore 0x0000000185dac560 CA::Layer::layout_if_needed(CA::Transaction*) + 316
16 QuartzCore 0x0000000185dac404 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
17 QuartzCore 0x0000000185dabc04 CA::Context::commit_transaction(CA::Transaction*) + 272
18 QuartzCore 0x0000000185dab988 CA::Transaction::commit() + 432
19 UIKit 0x00000001866e7014 -[UIApplication _reportMainSceneUpdateFinished:] + 56
20 UIKit 0x00000001866e7ec0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2776
21 UIKit 0x00000001866e6044 -[UIApplication workspaceDidEndTransaction:] + 180
22 FrontBoardServices 0x0000000189edd63c __31-[FBSSerialQueue performAsync:]_block_invoke + 24
23 CoreFoundation 0x0000000181c66120 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
24 CoreFoundation 0x0000000181c65228 __CFRunLoopDoBlocks + 308
25 CoreFoundation 0x0000000181c63428 __CFRunLoopRun + 692
26 CoreFoundation 0x0000000181b911f0 CFRunLoopRunSpecific + 392
27 UIKit 0x00000001864c7788 -[UIApplication _run] + 548
28 UIKit 0x00000001864c2780 UIApplicationMain + 1484
29 Cloud-Fryser 0x00000001000dc878 0x1000d0000 + 51320
30 libdyld.dylib 0x0000000192e7ea04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000192f7cc94 kevent64 + 8
1 libdispatch.dylib 0x0000000192e6497c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000192e573b0 _dispatch_mgr_thread + 48
Thread 2 name: Dispatch queue: com.apple.sydprotection
Thread 2:
0 libsystem_kernel.dylib 0x0000000192f96e50 __open + 8
1 libsystem_kernel.dylib 0x0000000192f95dbc open + 12
2 Foundation 0x0000000182ab1ebc _NSReadBytesFromFileWithExtendedAttributes + 132
3 Foundation 0x0000000182ab1ddc -[NSData(NSData) initWithContentsOfFile:] + 76
4 Foundation 0x0000000182ad87fc -[NSData(NSData) initWithContentsOfURL:] + 384
5 Foundation 0x0000000182ab1cf0 +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] + 112
6 SyncedDefaults 0x000000018dbab224 -[SYDRemotePreferencesSource _cachePlistFromDisk] + 104
7 SyncedDefaults 0x000000018dbabedc -[SYDRemotePreferencesSource _synchronizeForced:] + 160
8 SyncedDefaults 0x000000018dbabdac __48-[SYDRemotePreferencesSource synchronizeForced:]_block_invoke + 36
9 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
10 libdispatch.dylib 0x0000000192e5e6e4 _dispatch_barrier_sync_f_invoke + 72
11 SyncedDefaults 0x000000018dbabd5c -[SYDRemotePreferencesSource synchronizeForced:] + 116
12 Foundation 0x0000000182aecc74 -[NSUbiquitousKeyValueStore synchronizeWithSourceForced:] + 32
13 Foundation 0x0000000182aecbe0 __46-[NSUbiquitousKeyValueStore _registerToDaemon]_block_invoke + 72
14 libdispatch.dylib 0x0000000192e553a8 _dispatch_call_block_and_release + 20
15 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
16 libdispatch.dylib 0x0000000192e5f4bc _dispatch_queue_drain + 1212
17 libdispatch.dylib 0x0000000192e58470 _dispatch_queue_invoke + 128
18 libdispatch.dylib 0x0000000192e61220 _dispatch_root_queue_drain + 660
19 libdispatch.dylib 0x0000000192e62758 _dispatch_worker_thread3 + 104
20 libsystem_pthread.dylib 0x00000001930312e0 _pthread_wqthread + 812
21 libsystem_pthread.dylib 0x0000000193030fa4 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000192f97c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000193031390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000193030fa4 start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x0000000192f97c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000193031390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000193030fa4 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x0000000192f7ce7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000192f7ccf4 mach_msg + 68
2 CoreFoundation 0x0000000181c655c8 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181c6351c __CFRunLoopRun + 936
4 CoreFoundation 0x0000000181b911f0 CFRunLoopRunSpecific + 392
5 CoreFoundation 0x0000000181be32a8 CFRunLoopRun + 108
6 CoreMotion 0x000000018258a9d4 0x182548000 + 272852
7 libsystem_pthread.dylib 0x0000000193033e7c _pthread_body + 160
8 libsystem_pthread.dylib 0x0000000193033dd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x0000000193030fac thread_start + 0
Here is the second crash report:
Application Specific Information:
com.Name.App failed to scene-create in time
Elapsed total CPU time (seconds): 20.300 (user 20.300, system 0.000), 49% CPU
Elapsed application CPU time (seconds): 0.207, 1% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000192f7ceb8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000192e62d98 _dispatch_group_wait_slow + 244
2 CloudDocs 0x0000000188427818 -[BRXPCSyncProxy resultWithTimeout:] + 72
3 CloudDocs 0x0000000188418bc0 __BRIsProcessForcingUbiquity_block_invoke + 172
4 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
5 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
6 CloudDocs 0x0000000188418b0c BRIsProcessForcingUbiquity + 60
7 Foundation 0x0000000182b3ad6c ___BRIsCloudDocsUsed_block_invoke + 44
8 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
9 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
10 Foundation 0x0000000182b35044 ___NSFrameworkHandleForLibrarianSymbols_block_invoke + 96
11 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
12 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
13 Foundation 0x0000000182b3acec ___initializeLibrarianFunctions_block_invoke + 268
14 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
15 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
16 Foundation 0x0000000182b3a5b0 -[NSFileManager URLForUbiquityContainerIdentifier:] + 544
17 Cloud-Fryser 0x000000010003dc04 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:20)
18 UIKit 0x00000001864ce3cc -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 300
19 UIKit 0x00000001866e522c -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2280
20 UIKit 0x00000001866e79ac -[UIApplication _runWithMainScene:transitionContext:completion:] + 1476
21 UIKit 0x00000001866e6044 -[UIApplication workspaceDidEndTransaction:] + 180
22 FrontBoardServices 0x0000000189edd63c __31-[FBSSerialQueue performAsync:]_block_invoke + 24
23 CoreFoundation 0x0000000181c66120 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
24 CoreFoundation 0x0000000181c65228 __CFRunLoopDoBlocks + 308
25 CoreFoundation 0x0000000181c6384c __CFRunLoopRun + 1752
26 CoreFoundation 0x0000000181b911f0 CFRunLoopRunSpecific + 392
27 UIKit 0x00000001864c7788 -[UIApplication _run] + 548
28 UIKit 0x00000001864c2780 UIApplicationMain + 1484
29 Cloud-Fryser 0x0000000100044878 main (main.m:16)
30 libdyld.dylib 0x0000000192e7ea04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000192f7cc94 kevent64 + 8
1 libdispatch.dylib 0x0000000192e6497c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000192e573b0 _dispatch_mgr_thread + 48
If you need additional information, just let me know.
The issue is very simple.
You just spend too much time loading your app on the splash screen and the iOS device stops your app.
The reason it only happens in the review and not when you test it is because you always run it from Xcode, and when running from Xcode it won't have this behavior.
If you will run your app directly from the device (by tapping its icon) you will see it will happen there as well. Assuming you spent too much time loading on that specific run.
Edit: Also I am seeing that you are stuck on a semaphore and don't use too much CPU, which might mean you have a deadlock which stalls the app on the reviewer's device and that is why it spends too much time loading and the device stops your app. Not sure...
Here is my devblog post if you are interested:
http://pompidev.net/2014/11/16/ios-app-works-on-xcode-but-crash-running-from-device/

weird iPhone 0x8badf00d crash report

I got a iPhone crash report when my app is brought to foreground, before that, the app is deleting some files, and i press HOME button to bring it background.
the weird thing is in the crash report, the Highlighted Thread is not 0, in my memory, the code 0x8badf00d exception's highlighted thread is always 0.
the thread 5 is doing some database operation, i used FMDB's queue mechanism to avoid multi-threads competition.
i wander know why the highlighted thread is 5 ? is the thread 5 block the main thread ?
Thanks for any help you can offer.
here is the crash report:
Date/Time: 2013-10-30 15:37:24.620 +0800
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 5
Application Specific Information:
com.xxxx.xxxx failed to resume in time
Elapsed total CPU time (seconds): 10.010 (user 10.010, system 0.000), 100% CPU
Elapsed application CPU time (seconds): 7.631, 76% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3b9bcc80 __unlink + 8
1 libsystem_kernel.dylib 0x3b9ae8bc unlink + 4
2 libremovefile.dylib 0x3b9027f8 __removefile_process_file + 236
3 libremovefile.dylib 0x3b90288a __removefile_tree_walker + 114
4 libremovefile.dylib 0x3b902a72 removefile + 118
5 Foundation 0x340cec4e -[NSFilesystemItemRemoveOperation main] + 170
6 Foundation 0x340cd5bc -[__NSOperationInternal start] + 836
7 Foundation 0x340cc4fc -[NSFileManager removeItemAtPath:error:] + 80
8 mCloud_iPhone 0x003037ae -[SDImageCache clearDisk] (SDImageCache.m:413)
9 mCloud_iPhone 0x0032a1d2 -[AppSettingViewController clearCachesEvent:] (AppSettingViewController.m:365)
10 UIKit 0x357330c0 -[UIApplication sendAction:to:from:forEvent:] + 68
11 UIKit 0x35733072 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
12 UIKit 0x35733050 -[UIControl sendAction:to:forEvent:] + 40
13 UIKit 0x35732906 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
14 UIKit 0x35732dfc -[UIControl touchesEnded:withEvent:] + 484
15 UIKit 0x3565141c _UIGestureRecognizerUpdate + 5764
16 CoreFoundation 0x338156ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
17 CoreFoundation 0x338139bc __CFRunLoopDoObservers + 272
18 CoreFoundation 0x33813d12 __CFRunLoopRun + 738
19 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
20 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
21 GraphicsServices 0x373392e6 GSEventRunModal + 70
22 UIKit 0x3569c2fc UIApplicationMain + 1116
23 mCloud_iPhone 0x002d7c06 main (main.m:16)
24 mCloud_iPhone 0x002d7bc8 ___lldb_unnamed_function8568$$mCloud_iPhone + 36
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3b9ac648 kevent64 + 24
1 libdispatch.dylib 0x3b8e54ec _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3b8d7df4 _dispatch_mgr_thread$VARIANT$up + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 WebCore 0x39774500 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3b91530e _pthread_start + 306
8 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 3 name: com.crashlytics.MachExceptionServer
Thread 3:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 mCloud_iPhone 0x00488940 ___lldb_unnamed_function16966$$mCloud_iPhone + 116
3 libsystem_c.dylib 0x3b91530e _pthread_start + 306
4 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 mCloud_iPhone 0x003ec330 -[FXThreadManager threadFunc:] (FXThreadManager.m:263)
7 Foundation 0x34156e80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b91530e _pthread_start + 306
9 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 5 name: Dispatch queue: fmdb.<FMDatabaseQueue: 0x1ede9bc0>
Thread 5:
0 libsqlite3.dylib 0x3b6e127c ___lldb_unnamed_function124$$libsqlite3.dylib + 35596
1 libsqlite3.dylib 0x3b6d8482 sqlite3_step + 2138
2 mCloud_iPhone 0x00429fca -[FMResultSet next] (FMResultSet.m:155)
3 mCloud_iPhone 0x00454930 +[FXDatabaseOperator query:withVAList:withDatabase:resultType:] (FXDatabaseOperator.m:182)
4 mCloud_iPhone 0x00454f54 __44+[FXDatabaseOperator queryWithDBFileID:sql:]_block_invoke (FXDatabaseOperator.m:236)
5 mCloud_iPhone 0x00453124 __30-[FMDatabaseQueue inDatabase:]_block_invoke (FMDatabaseQueue.m:101)
6 libdispatch.dylib 0x3b8d54b4 _dispatch_client_callout + 20
7 libdispatch.dylib 0x3b8e390a _dispatch_barrier_sync_f_invoke + 22
8 mCloud_iPhone 0x00453098 -[FMDatabaseQueue inDatabase:] (FMDatabaseQueue.m:98)
9 mCloud_iPhone 0x00454e16 +[FXDatabaseOperator queryWithDBFileID:sql:] (FXDatabaseOperator.m:235)
10 mCloud_iPhone 0x000c5804 -[DatabaseManager queryPhotoBackupByFileName:] (DatabaseManager.m:1233)
11 mCloud_iPhone 0x000dda50 -[CameraBackupManager queryBackUpDb:] (CameraBackupManager.m:2867)
12 mCloud_iPhone 0x000d3bc4 __43-[CameraBackupManager synSystemlibraryToDb]_block_invoke_2 (CameraBackupManager.m:514)
13 AssetsLibrary 0x330c7c5e __62-[ALAssetsGroup _enumerateAssetsAtIndexes:options:usingBlock:]_block_invoke_0125 + 102
14 CoreFoundation 0x3383499e __NSArrayEnumerate + 394
15 CoreFoundation 0x33796b66 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 58
16 AssetsLibrary 0x330c78be -[ALAssetsGroup _enumerateAssetsAtIndexes:options:usingBlock:] + 718
17 AssetsLibrary 0x330c7cd4 -[ALAssetsGroup enumerateAssetsUsingBlock:] + 24
18 AssetsLibrary 0x330c9a0a __block_global_1 + 26
19 CoreFoundation 0x3383499e __NSArrayEnumerate + 394
20 CoreFoundation 0x33796b66 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 58
21 AssetsLibrary 0x330c9866 __block_global_0 + 1014
22 libdispatch.dylib 0x3b8d611c _dispatch_call_block_and_release + 8
23 libdispatch.dylib 0x3b8e4254 _dispatch_root_queue_drain + 256
24 libdispatch.dylib 0x3b8e43b4 _dispatch_worker_thread2 + 80
25 libsystem_c.dylib 0x3b90aa0e _pthread_wqthread + 358
26 libsystem_c.dylib 0x3b90a8a0 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 mCloud_iPhone 0x003ec330 -[FXThreadManager threadFunc:] (FXThreadManager.m:263)
7 Foundation 0x34156e80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b91530e _pthread_start + 306
9 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 mCloud_iPhone 0x00415acc +[ASIHTTPRequest runRequests] (ASIHTTPRequest.m:4966)
7 Foundation 0x34156e80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b91530e _pthread_start + 306
9 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 Foundation 0x340d33d0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x34156e80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b91530e _pthread_start + 306
9 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x3b9bc594 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x338191f2 __CFSocketManager + 674
2 libsystem_c.dylib 0x3b91530e _pthread_start + 306
3 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 Foundation 0x340a9f92 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x3414d860 -[NSRunLoop(NSRunLoop) run] + 76
8 Foundation 0x34156e80 __NSThread__main__ + 968
9 libsystem_c.dylib 0x3b91530e _pthread_start + 306
10 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 11:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 mCloud_iPhone 0x003ec330 -[FXThreadManager threadFunc:] (FXThreadManager.m:263)
7 Foundation 0x34156e80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b91530e _pthread_start + 306
9 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x3b9abf04 semaphore_wait_trap + 8
1 libdispatch.dylib 0x3b8e482a _dispatch_semaphore_wait_slow + 178
2 TCC 0x38ef6682 TCCAccessPreflight + 218
3 AddressBook 0x32fbc048 ABAddressBookGetAuthorizationStatus + 4
4 mCloud_iPhone 0x00132116 -[AddrBookObject accessToContacts] (AddrBookObject.m:141)
5 mCloud_iPhone 0x00143fb8 -[ApnsManager isNotificationEnabled] (ApnsManager.m:96)
6 mCloud_iPhone 0x0010798a -[AddressBookManager queryAutoSynSwitchStateForServer] (AddressBookManager.m:1046)
7 mCloud_iPhone 0x00107876 __50-[AddressBookManager accessToTheServerSwitchState]_block_invoke (AddressBookManager.m:1008)
8 libdispatch.dylib 0x3b8d611c _dispatch_call_block_and_release + 8
9 libdispatch.dylib 0x3b8d5996 _dispatch_queue_drain$VARIANT$up + 142
10 libdispatch.dylib 0x3b8d5890 _dispatch_queue_invoke$VARIANT$up + 32
11 libdispatch.dylib 0x3b8e4212 _dispatch_root_queue_drain + 190
12 libdispatch.dylib 0x3b8e43b4 _dispatch_worker_thread2 + 80
13 libsystem_c.dylib 0x3b90aa0e _pthread_wqthread + 358
14 libsystem_c.dylib 0x3b90a8a0 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x3b9abeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b9ac048 mach_msg + 36
2 CoreFoundation 0x33815040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x33813d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33786eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33786d44 CFRunLoopRunInMode + 100
6 mCloud_iPhone 0x003ec330 -[FXThreadManager threadFunc:] (FXThreadManager.m:263)
7 Foundation 0x34156e80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b91530e _pthread_start + 306
9 libsystem_c.dylib 0x3b9151d4 thread_start + 4
Thread 14 name: Dispatch queue: fmdb.<FMDatabaseQueue: 0x1fbdf850>
Thread 14:
0 libsystem_kernel.dylib 0x3b9ae898 pwrite + 20
1 libsqlite3.dylib 0x3b72e5c0 ___lldb_unnamed_function725$$libsqlite3.dylib + 44
2 libsqlite3.dylib 0x3b6eedc8 ___lldb_unnamed_function200$$libsqlite3.dylib + 52
3 libsqlite3.dylib 0x3b6ec332 ___lldb_unnamed_function190$$libsqlite3.dylib + 1106
4 libsqlite3.dylib 0x3b6ebed2 ___lldb_unnamed_function189$$libsqlite3.dylib + 574
5 libsqlite3.dylib 0x3b6ee126 ___lldb_unnamed_function195$$libsqlite3.dylib + 1150
6 libsqlite3.dylib 0x3b6da2ba ___lldb_unnamed_function124$$libsqlite3.dylib + 6986
7 libsqlite3.dylib 0x3b6d8482 sqlite3_step + 2138
8 mCloud_iPhone 0x00426fee -[FMDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] (FMDatabase.m:902)
9 mCloud_iPhone 0x00455e20 +[FXDatabaseOperator updateInTransaction:sql:] (FXDatabaseOperator.m:345)
10 mCloud_iPhone 0x00250d44 __41-[NDDatabaseManager updateTransferTasks:]_block_invoke_0 (NDDatabaseManager.m:2353)
11 mCloud_iPhone 0x00455bb8 __55+[FXDatabaseOperator doTransactionWithDBFileID:action:]_block_invoke (FXDatabaseOperator.m:307)
12 mCloud_iPhone 0x004533b4 __46-[FMDatabaseQueue beginTransaction:withBlock:]_block_invoke (FMDatabaseQueue.m:125)
13 libdispatch.dylib 0x3b8d54b4 _dispatch_client_callout + 20
14 libdispatch.dylib 0x3b8e390a _dispatch_barrier_sync_f_invoke + 22
15 mCloud_iPhone 0x00453286 -[FMDatabaseQueue beginTransaction:withBlock:] (FMDatabaseQueue.m:114)
16 mCloud_iPhone 0x0045353e -[FMDatabaseQueue inTransaction:] (FMDatabaseQueue.m:143)
17 mCloud_iPhone 0x00455a6e +[FXDatabaseOperator doTransactionWithDBFileID:action:] (FXDatabaseOperator.m:303)
18 mCloud_iPhone 0x0025071c -[NDDatabaseManager updateTransferTasks:] (NDDatabaseManager.m:2386)
19 mCloud_iPhone 0x002b14ae __50-[NDTransTaskDataManager startAllAutoPausedTasks:]_block_invoke_0 (NDTransTaskDataManager.m:1212)
20 libdispatch.dylib 0x3b8d611c _dispatch_call_block_and_release + 8
21 libdispatch.dylib 0x3b8e4254 _dispatch_root_queue_drain + 256
22 libdispatch.dylib 0x3b8e43b4 _dispatch_worker_thread2 + 80
23 libsystem_c.dylib 0x3b90aa0e _pthread_wqthread + 358
24 libsystem_c.dylib 0x3b90a8a0 start_wqthread + 4
Unknown thread crashed with unknown flavor: 5, state_count: 1
0x8badf00d: Reads as “ate bad food”! (If you squint your eyes and replace the digits with alphabetic characters. :p) This code indicates that an application was terminated by iOS because a watchdog timeout occurred. Basically, the application took too long to launch, terminate, or respond to system events.
http://www.raywenderlich.com/19788