what happens to NSLog info when running on a device? what happens to NSLog info when running on a device? ios ios

what happens to NSLog info when running on a device?


Since Xcode 6 the device manager pane has been split into its own window. (Window > Devices, or Command-Shift-2.)

Once there, select your device, then show its log by clicking the disclosure triangle at the bottom of the window to the right of the sidebar.

enter image description here


Your device will continue logging even when it's not connected to your mac. To see the logs, you need to open Xcode, click the 'Window' menu item, and then 'Organizer'. Then select your device and then select the 'Device Logs' tab. For some reason (for me at least) viewing the logs seems flaky, so if nothing shows up, you may need to completely quit Xcode and restart it.


The text is logged. You can view the logs in xcode via the (almost-invisible) disclosure triangle in the Devices window as described in another answer.

You can also access the logs in a more usable view (including filtering) by opening Console.app on your connected Mac and selecting the device on the left.

Console.app screenshot

There will be some overhead with logging, but considering the volume of logging that's going on all the time in recent versions of iOS, unless you're generating an awful lot of output (or spending time generating the messages), it's unlikely to be significant.