Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this book you’ve utilized the NSLog function extensively to emit diagnostic messages to the Xcode debugger console window. What you may not realize is that NSLog continues to log messages even when your application is used outside of the debugger. It even logs messages once a user purchases your application from the iTunes App Store and runs it on their own device. Where do these log messages end up, and how do you retrieve them?
To answer these questions, deploy the DebugSample application onto your real iPhone or iPad device, and run the application a couple of times (see appendix A for details if you haven’t done this before). When you reconnect the device to your computer, you can bring up the Xcode Organizer window (Shift-Cmd-2), which should look similar to figure 14.2.