iOS App因终止而崩溃:命名空间SPRINGBOARD,代码0x8badf00d

时间:2019-04-04 05:42:18

标签: ios swift crash

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

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" | )

这是线程崩溃报告:

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

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

2 个答案:

答案 0 :(得分:1)

Xcode 12.2 就我而言

  1. 我设置了 Build Settings -> Build Active Architecture Only even for Release - 是

enter image description here

  1. 检查存档的编辑方案!设置为发布,而不是运行

enter image description here

答案 1 :(得分:0)

崩溃的原因是您的应用程序在后台花费了太多时间或启动时间太长,因此被监视程序终止。这可以从终止原因代码中看到。有关更多信息,请参阅这篇文章:What does 8badf00d mean?

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