How do I know which line of code has caused my iOS app to crash in Xcode 9
问题 I am building an app in Xcode 9 (Swift 4) and it crashes before it even loads completely. I get an error: Thread 1: Signal SIGABRT and libc++abi.dylib: terminating with uncaught exception of type NSException . How do I know which line of code is causing the error using breakpoints and debugging? Any help would be appreciated. Thanks! (Here's a screenshot as well) 回答1: What you need here is an exception breakpoint. An exception breakpoint is a special kind of breakpoint that breaks whenever an