Debugging Exceptions in Xcode
Just type
po $arg1
into the debug area to get the human-readable version of the error (in this case, the nib is invalid) […] Finally, you can add thepo $arg1
command to your Exception Breakpoint so it’s just automatic.
Whereas, otherwise Swift will crash with no useful information when there’s an uncaught exception.