ios - iOS应用程序在后台运行180秒后崩溃
问题描述
从控制台获取以下日志(即使在模拟器中也不会在调试模式下发生)
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
解决方案
推荐阅读
- google-colaboratory - google colab 上“功率级别”的含义
- c++ - C++ 向量
> std::all_of() 函数问题(重定向到头文件) - github - Travis 没有发布到 Github
- r - 删除重复数据并替换某些区域中的缺失值
- c# - 序列化包含 ListViews 字典的 C# 类
- corpus - Fasttext:如何使用 fasttext 处理语料库?
- jquery - 从中获取价值
- c# - 容器在安装到卷时启动并立即停止
- c# - 将来自 2 个不同日期时间变量的部分组合成一个新的日期时间变量
- next.js - 默认导出不是页面中的 React 组件:删除 node_modules 并重新安装 npm 后的“/”