Search code examples
iphonexcodeiosnslog

how to see iphone logging (NSLog) after app restart?


How could I view iphone logging (eg NSLog) after app restart?

I'm interested in the answer both for using the (a) simulator and (b) an IOS device.

Background - In this case I have some issues no doubt in my code with how the application is supposed to launch, get previous state, and goto the controller/view it was at prior to it being terminated. Hence I want to see the logging as it starts up.


Solution

  • For seeing device logs, you can use Organizer tool available in XCode(your device should be connected with system).

    For simulator you will have to re-run application from XCode.

    Thanks,