libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

In Xcode 9 and Swift 4:code

Print exception stack to know the reason of the exception:ip

  1. Go to show break point navigator.
  2. Add (+) Add Exception Breakpoint.get

  3. Select the new breakpoint, Control-Click, Edit Breakpoint.it

  4. Add Action and Enter: po $arg1

enter image description here

相關文章
相關標籤/搜索