ios – libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
ios – libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
CMYR – his could also happen if youve wired up a button to an IBAction that doesnt exist anymore (or has been renamed)
If youre running into this problem make sure that you go to Main.storyboard, RIGHT click on the yellow box icon (view controller) at the top of the phone outline and DELETE the outlet(s) with yellow flags.
What happens in instances like this is you probably named an action, then renamed it. You need to delete the old name and if that was the only issue will start right up in sim!
Did you set the OS_ACTIVITY_MODE variable by any chance?
To check if you have this variable set (and turn it off), in Xcode 9, do the following:
Select from Xcode menu Product -> Scheme -> Edit Scheme..
Select the Run scheme and look under Arguments.
If you see the OS_ACTIVITY_MODE variable checked, deselect it
ios – libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
In Xcode 9 and Swift 4:
Print exception stack to know the reason of the exception:
- Go to show break point navigator.
- Add (+) Add Exception Breakpoint.
- Select the new breakpoint, Control-Click, Edit Breakpoint.
- Add Action and Enter: po $arg1