How do I debug: libc++abi.dylib: terminating with uncaught exception of type NSException?

后端 未结 3 638
一向
一向 2020-12-28 10:37

Sorry for asking this noob question, I know it has been asked thousands of times before, I know because I\'ve had this problem thousands of times before. But this time googl

相关标签:
3条回答
  • 2020-12-28 11:08

    Swift

    Just add

    NSSetUncaughtExceptionHandler { exception in
       print(exception)
       print(exception.callStackSymbols)
    }
    

    at the bottom of didFinishLaunchingWithOptions method of AppDelegate. It will give you the better info about the exception occurred. Happy coding !

    0 讨论(0)
  • 2020-12-28 11:24

    Once I was able to see my app log I could see my custom class was not being found. I'll leave the fix I found for this issue for any people who have this issue in the future:

    Xcode 6 Strange Bug: Unknown class in Interface Builder file

    0 讨论(0)
  • 2020-12-28 11:28

    This happened to me when I accidentaly removed one of my storyboards from my targets. Make sure to double check your Target Membership.

    0 讨论(0)
提交回复
热议问题