Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS App Crashed with Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d

Tags:

ios

swift

crash

App is running fine on device, but when we submitted app to review it gets rejected multiple times. Unable to find reason. Here is the reason specified for 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" | )

Here is thread Crash Report :

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

I am not using any synchronous call at the time of launch. I have tried many solutions which was already mentioned in stackoverflow but still unable to resolve the issue.

like image 238
Shruti Thombre Avatar asked Apr 04 '19 05:04

Shruti Thombre


2 Answers

The reason for the crash is that your application used up too much time in the background or took too long to launch and was therefore terminated by the watchdog process. This can be seen from the Termination Reason code. For more information, refer to this post: What does 8badf00d mean?

You have to figure out what causes the delay and resolve that problem.

like image 132
Lutz Avatar answered Oct 21 '22 22:10

Lutz


Xcode 12.2 In my case

  1. I set Build Settings -> Build Active Architecture Only for Release - yes

enter image description here

  1. Check the Edit Scheme / Archive! Set to Release, not Run

enter image description here

like image 31
Slava Vasilenko Avatar answered Oct 21 '22 21:10

Slava Vasilenko