我的Swift应用程序被iOS(0x8badf00d)杀死,看起来Crashlytics是罪魁祸首。这是崩溃报告的一部分-由于代码上的CLS前缀,我认为它是Crashlytics。
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: com.rsginc.rmove exhausted CPU time allowance of 4.70 seconds | ProcessVisibility: Background | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Background | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 7.550 (user 7.550, system 0.000), 10% CPU", | "Elapsed application CPU time (seconds): 5.119, 7% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001fab7d948 write + 8
1 rMove 0x00000001048e6814 CLSSDKFileLog + 336
2 rMove 0x00000001048f2128 __CLSFileWriteWithRetries_block_invoke + 128
3 rMove 0x00000001048f203c CLSFileLoopWithWriteBlock + 56
4 rMove 0x00000001048f23ac CLSFileFDWriteUInt64 + 128
5 rMove 0x00000001048f248c CLSFileFDWriteInt64 + 116
6 rMove 0x00000001048e6804 CLSSDKFileLog + 320
7 rMove 0x00000001048f2128 __CLSFileWriteWithRetries_block_invoke + 128
8 rMove 0x00000001048f203c CLSFileLoopWithWriteBlock + 56
9 rMove 0x00000001048f23ac CLSFileFDWriteUInt64 + 128
10 rMove 0x00000001048f248c CLSFileFDWriteInt64 + 116
11 rMove 0x00000001048e6804 CLSSDKFileLog + 320
12 rMove 0x00000001048f2128 __CLSFileWriteWithRetries_block_invoke + 128
13 rMove 0x00000001048f203c CLSFileLoopWithWriteBlock + 56
14 rMove 0x00000001048f23ac CLSFileFDWriteUInt64 + 128
15 rMove 0x00000001048f248c CLSFileFDWriteInt64 + 116
...
该跟踪中的5条重复的行重复了102次-我出于StackOverflow字符限制和可读性而将其截断了。
我无法找到其他遇到此问题的人-这是已知错误,还是在Crashlytics调用中我可能做错了什么?
答案 0 :(得分:1)
我假设您的应用启动时间超过20秒。 看一下documentation,找到代码为0x8badf00d的零件。
异常代码0x8badf00d指示应用程序已被iOS终止,因为发生了看门狗超时。该应用程序启动,终止或响应系统事件所需的时间过长。一个常见的原因是在主线程上进行同步网络连接。线程0上的任何操作都需要移至后台线程,或进行不同的处理,以免阻塞主线程。