如何解决致命异常:NSInvalidArgumentException,CoreFoundation exceptionPreprocess?

时间:2019-01-31 06:58:50

标签: ios swift crash google-fabric

在我的Crashlytics报告中,找不到任何课程文件。从堆栈跟踪中可以看到,当我调用断开连接时,应用程序将崩溃。很难重现此错误,实际上,我无法调用它,但是在Crashlytics中看到错误。如何解决此类错误以及如何重现此错误?

崩溃1:

  

致命异常:NSInvalidArgumentException 0 CoreFoundation
  0x1fb907f50 __exceptionPreprocess 1 libobjc.A.dylib
  0x1fab04284 objc_exception_throw 2 CoreFoundation
  0x1fb80a25c-[NSCache init] 3 UIKitCore
  0x228f5a784(缺少)4 UIKitCore 0x228f5b360   (缺少)5 UIKitCore 0x228f5e598(缺少)6   UIKitCore 0x2291c1c88(缺少)7 UIKitCore
  0x2291ca584(缺少)8 UIKitCore 0x2291c7d64   (缺少)9 UIKitCore 0x2291c71e4(缺少)10   UIKitCore 0x2291ba1b8(缺少)

崩溃2:

  

崩溃:com.apple.main-thread 0 ID-Pal
  0x100deda14 $ S6ID_Pal20ViewControllerC14passportActionyyypF   (ViewController.swift:135)1个ID-Pal
  0x100defafc $ S6ID_Pal20PhotosViewControllerC12cameraactionyyypFToTm +   4298029820

在第135行的此ViewController中:

    self.navigationController?.setNavigationBarHidden(true, animated: false)

这真的导致错误吗?

0 个答案:

没有答案