iOS 应用程序因终止原因崩溃:命名空间 SPRINGBOARD,代码 0x8badf00d

Shr*_*bre 6 crash ios swift

应用程序在设备上运行良好,但是当我们提交应用程序进行审核时,它被多次拒绝。找不到原因。这是指定的崩溃原因。

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog 
transgression: **bundle id** exhausted real (wall clock) time 
allowance of 18.32 seconds | ProcessVisibility: Foreground | 
ProcessState: Running | WatchdogEvent: scene-create | 
WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed 
total CPU time (seconds): 58.590 (user 58.590, system 0.000), 98% CPU", | "Elapsed application CPU time (seconds): 2.587, 4% CPU" | )
Run Code Online (Sandbox Code Playgroud)

这是线程崩溃报告:

Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x0000000194807ea4 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000019480737c mach_msg + 72
2   libdispatch.dylib               0x000000019466c2d0 _dispatch_mach_send_and_wait_for_reply + 500
3   libdispatch.dylib               0x000000019466c764 dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$mp + 56
4   libxpc.dylib                    0x00000001948cfea0 xpc_connection_send_message_with_reply_sync + 204
5   Security                        0x0000000195922aac securityd_message_with_reply_sync + 96
6   Security                        0x0000000195923070 securityd_send_sync_and_do + 80
7   Security                        0x000000019597c188 __SecItemDelete_block_invoke_2 + 248
8   Security                        0x000000019597b8c4 __SecItemAuthDoQuery_block_invoke + 312
9   Security                        0x000000019597a314 SecItemAuthDo + 108
10  Security                        0x000000019597abac SecItemAuthDoQuery + 512
11  Security                        0x0000000195978920 SecOSStatusWith + 52
12  Security                        0x000000019597b1a4 SecItemDelete + 448
13  MyApp                       0x0000000100cba760 0x100948000 + 3614560
Run Code Online (Sandbox Code Playgroud)

我在启动时没有使用任何同步调用。我已经尝试了许多在 stackoverflow 中已经提到的解决方案,但仍然无法解决问题。

Lut*_*utz 4

崩溃的原因是您的应用程序在后台占用了太多时间或启动时间太长,因此被看门狗进程终止。这可以从终止原因代码中看出。有关更多信息,请参阅这篇文章:8badf00d 是什么意思?

您必须找出导致延迟的原因并解决该问题。