保存你自己的几个小时的调试,因为我已经浪费了2个星期后寻找神秘的应用程序崩溃的bug.事实证明,如果你向它添加了很多o(请参阅答案以获取更多详细信息)通知请求UNUserNotificationCenter,它将突然崩溃Springboard.我还没有找到解决方法,因为相同的代码适用于iOS 9及更低版本.您似乎无法批量添加之前的通知请求.以下是我每次收到的崩溃(数百名应用用户也是如此).知道我能做什么而不是回到使用UILocalNotifications?
Incident Identifier: 17BC9D5B-AF74-4592-8427-038375C27AE7
CrashReporter Key: a819553d1e72ee25a5ced9ddc79dbf00a7d3851f
Hardware Model: iPad5,3
Process: SpringBoard [2371]
Path: /System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: com.apple.springboard
Version: 50 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.apple.springboard [71]
Date/Time: 2016-11-16 14:57:04.9159 +0400
Launch Time: 2016-11-16 14:49:20.9981 +0400
OS Version: iPhone OS 10.0 (14A5309d)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 13
Filtered syslog:
None found
Thread 0 name: Dispatch queue: …Run Code Online (Sandbox Code Playgroud)