Debugging uncaught exception in Xcode
The easiest way to handle the exceptions in XCode during development is to add the exception break points.
You can do that as following.
- From left menu select Exceptions navigator
- Add the exception break point from bottom left button.
- Add break point for all the exceptions
- Run the app.
In most of the cases XCode will stop the execution on exception and point at the line that caused the exception.
In Xcode,
- go to Breakpoint navigator on the left pane.
- Click '+' at the bottom.
- Choose 'Add exception Breakpoint...'
- Let the default selections there and click 'Done'.
Rerun the app and see if execution stops at the line which causing this exception.