ios - Swift 应用程序在 iPhone 上崩溃但不是模拟器
问题描述
嘿伙计们,我正在为我的应用程序使用 crashlytics,并且在 iPhone 上出现以下崩溃,但在模拟器中它工作得很好,你知道吗?认为用户正在打开一个segue。我不知道它是否来自segue。或者是什么。请帮忙
Fatal Exception: NSUnknownKeyException
0 CoreFoundation 0x1b7ed5c30 __exceptionPreprocess
1 libobjc.A.dylib 0x1b7bf00c8 objc_exception_throw
2 CoreFoundation 0x1b7dd4bd0 -[NSObject(NSKindOfAdditions) isNSSet__]
3 Foundation 0x1b827bce4 _NSSetUsingKeyValueSetter
4 Foundation 0x1b81bc0f0 -[NSObject(NSKeyValueCoding) setValue:forKey:]
5 UIKitCore 0x1bb92d06c -[UIViewController setValue:forKey:]
6 UIKitCore 0x1bbc0264c -[UIRuntimeOutletConnection connect]
7 libobjc.A.dylib 0x1b7bebcf8 -[NSObject performSelector:]
8 CoreFoundation 0x1b7da958c -[NSArray makeObjectsPerformSelector:]
9 UIKitCore 0x1bbbff640 -[UINib instantiateWithOwner:options:]
10 UIKitCore 0x1bb933f08 -[UIViewController _loadViewFromNibNamed:bundle:]
11 UIKitCore 0x1bb9349cc -[UIViewController loadView]
12 UIKitCore 0x1bb934c9c -[UIViewController loadViewIfRequired]
13 UIKitCore 0x1bb935384 -[UIViewController view]
14 UIKitCore 0x1bb85b230 -[_UIFullscreenPresentationController _setPresentedViewController:]
15 UIKitCore 0x1bb84e9f8 -[UIPresentationController initWithPresentedViewController:presentingViewController:]
16 UIKitCore 0x1bb945320 -[UIViewController _presentViewController:withAnimationController:completion:]
17 UIKitCore 0x1bb947fb4 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
18 UIKitCore 0x1bb948518 -[UIViewController _performCoordinatedPresentOrDismiss:animated:]
19 UIKitCore 0x1bb947f00 -[UIViewController _presentViewController:animated:completion:]
20 UIKitCore 0x1bb948194 -[UIViewController presentViewController:animated:completion:]
21 UIKitCore 0x1bb94c4fc -[UIViewController _showViewController:withAction:sender:]
22 UIKitCore 0x1bc0bfaa0 __66-[UIStoryboardShowSegueTemplate newDefaultPerformHandlerForSegue:]_block_invoke
23 UIKitCore 0x1bc0c4ed8 -[UIStoryboardSegue perform]
24 UIKitCore 0x1bc0c5854 -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:]
25 UIKitCore 0x1bc0c56f8 -[UIStoryboardSegueTemplate _perform:]
26 UIKitCore 0x1bb937ba4 -[UIViewController performSegueWithIdentifier:sender:]
27 LBBW 0x1003bdf1c specialized SlideOutNavigation.openChanageLoginView(_:)
28 LBBW 0x1003b9098 @objc SlideOutNavigation.openImprint(_:) (<compiler-generated>)
29 libobjc.A.dylib 0x1b7bebd5c -[NSObject performSelector:withObject:withObject:]
30 UIKitCore 0x1bbf6cb44 -[UIApplication sendAction:to:from:forEvent:]
31 UIKitCore 0x1bb98910c -[UIControl sendAction:to:forEvent:]
32 UIKitCore 0x1bb989480 -[UIControl _sendActionsForEvents:withEvent:]
33 UIKitCore 0x1bb988490 -[UIControl touchesEnded:withEvent:]
34 UIKitCore 0x1bbfa768c -[UIWindow _sendTouchesForEvent:]
35 UIKitCore 0x1bbfa897c -[UIWindow sendEvent:]
36 UIKitCore 0x1bbf84804 -[UIApplication sendEvent:]
37 UIKitCore 0x1bbffe224 __dispatchPreprocessedEventFromEventQueue
38 UIKitCore 0x1bc0007dc __handleEventQueueInternal
39 UIKitCore 0x1bbff9960 __handleHIDEventFetcherDrain
40 CoreFoundation 0x1b7e51260 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
41 CoreFoundation 0x1b7e511b4 __CFRunLoopDoSource0
42 CoreFoundation 0x1b7e50920 __CFRunLoopDoSources0
43 CoreFoundation 0x1b7e4b7ec __CFRunLoopRun
44 CoreFoundation 0x1b7e4b098 CFRunLoopRunSpecific
45 GraphicsServices 0x1c1fb5534 GSEventRunModal
46 UIKitCore 0x1bbf6b7ac UIApplicationMain
47 LBBW 0x10033441c main + 37 (AppDelegate.swift:37)
48 libdyld.dylib
解决方案
推荐阅读
- jquery - 在 jQuery 中,在特定项目中执行每个循环
- java - 使用模拟嵌套 Bean 进行 Spring Boot 1.3 测试
- python - 深度卷积神经网络架构最终会产生错误。为什么?
- javascript - 材质 UI 图标未正确渲染
- sql - 如何对一组记录进行分组(即进入发票/计费周期)
- python - 训练和评估预测模型的预测误差
- ios - 在stackview中以编程方式定位视图、标签、图像视图的问题
- javascript - 如何将我的第一个 javascript Web 应用程序部署到 Web 上以供实际使用
- spring-boot - 微服务被自动杀死
- java - JavaFX WebEngine 设置文档位置