【发布时间】:2018-03-17 15:38:41
【问题描述】:
以下代码行是我们的应用突然开始在 iOS 11 / 11.0.1 / 11.0.2 / 11.1.1 / 11.2.2 上对某些用户崩溃的地方:
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
我们在didFinishLaunchingWithOptions 中有这个。崩溃报告说:
Fatal Exception: NSInternalInconsistencyException
Invalid parameter not satisfying: bundleProxy != nil
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x1869b3d38 __exceptionPreprocess
1 libobjc.A.dylib 0x185ec8528 objc_exception_throw
2 CoreFoundation 0x1869b3c0c +[NSException raise:format:]
3 Foundation 0x187342c24 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 UserNotifications 0x18fcc973c -[UNUserNotificationCenter initWithBundleProxy:]
5 UserNotifications 0x18fcc950c __53+[UNUserNotificationCenter currentNotificationCenter]_block_invoke
6 libdispatch.dylib 0x186339048 _dispatch_client_callout
7 libdispatch.dylib 0x18633c710 dispatch_once_f$VARIANT$mp
8 UserNotifications 0x18fcc94ac +[UNUserNotificationCenter currentNotificationCenter]
它显然来自 iOS。还有其他人遇到同样的错误吗?知道发生了什么吗?
【问题讨论】:
-
你弄明白了吗?
-
不,仍然看到神秘的崩溃
-
@SamJarman 我想是的
标签: objective-c crash ios11 unusernotificationcenter