在后台运行180秒后,iOS应用程序崩溃了

时间:2019-05-15 14:03:03

标签: ios background crash ios12

从控制台获取以下日志(即使在模拟器中,也不会在调试模式下发生这种情况)

Can't get most elevated app state from dictionary {
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.App.Stage";
SBApplicationStateKey = 0;
SBApplicationStateProcessIDKey = PID;
SBApplicationStateRunningReasonsKey =     (
            {
        SBApplicationStateRunningReasonAssertionIdentifierKey = "Shared Background Assertion 2 for com.App.Stage";
        SBApplicationStateRunningReasonAssertionReasonKey = 4;
    }
);

}

这是崩溃日志

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace ASSERTIOND, Code 0x8badf00d
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001b0ce3ea4 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x00000001b0ce337c mach_msg + 72
2   CoreFoundation                  0x00000001b10e8be8 __CFRunLoopServiceMachPort + 236
3   CoreFoundation                  0x00000001b10e3a84 __CFRunLoopRun + 1396
4   CoreFoundation                  0x00000001b10e31f0 CFRunLoopRunSpecific + 436
5   GraphicsServices                0x00000001b335c584 GSEventRunModal + 100
6   UIKitCore                       0x00000001de478c00 UIApplicationMain + 212
7   App Stage                       0x00000001059c13b0 0x104a0c000 + 16470960
8   libdyld.dylib                   0x00000001b0ba2bb4 start + 4

0 个答案:

没有答案