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.
As such, you can rely on it being available for your debugging purposes on any Apple platform where your app will run. NSLog outputs messages to the Apple System Log facility or to the Console app (usually prefixed with the time and the process id).
To open Console from the iOS simulator, from the menu bar, select Debug > Open System Log .... To open Console from the Applications folder: Click Applications.
Sends a default-level message to the logging system. iOS 10.0+ iPadOS 10.0+ macOS 10.12+ Mac Catalyst 13.0+ tvOS 10.0+ watchOS 3.0+
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,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With