I want to test my app when it is not launched via Xcode, but rather by launching directly from the springboard. And I want to see log messages as I do that.
I'm not having any trouble seeing console logs for the simulator using os_log. It's great, because my category and subsystem let me filter to see exactly the messages I want to see in the Console app:
Now I want to do this on my device. I can see my connected device listed in the Console app:
But I don't see any of my app's os_log or print messages in the Console app. Is this just not a supported thing? Is there a way to log to the Console app from my device? Is there any way to log from my app running independently on the device?
EDIT Curiouser and curiouser. Now I'm able to see some of my app's os_log messages in the Console while the app runs independently on the device:
The catch, however, is that word "some". It seems to start working for a while and then it just mysteriously stops again. It's as if the pipeline from the device to the Console is unreliable.
So now the question becomes: is there any way to log reliably from my app running independently on the device?




