Game Development Reference
In-Depth Information
Figure 14-2 shows you what you normally see when the program aborts. Xcode 5 opens
main.m and points to the UIApplicationMain line as the culprit. That's not useful in-
formation—it just tells you that the app crashed, but it does not tell you where exactly the
exception occurred.
Figure 14-2 . An assertion raised an exception that halted the program. Without an exception breakpoint,
Xcode 5 will show you the main function
To fix that, you'll have to add an exception breakpoint in Xcode 5. Xcode 6 users can still
do so. The most noticeable difference the exception breakpoint will have in Xcode 6 is
that the app will halt before the exception (assertion) message and call stack have been
printed to the log.
To add an exception breakpoint in Xcode, select the Breakpoint Navigator tab (which is
shown in Figure 14-3 ), click the + button in the lower left corner, and then select Add Ex-
ception Breakpoint .
Search WWH ::




Custom Search