Grepping or filtering the Xcode "Devices" console

I am debugging the Corona SDK application that I run on my iPhone. When I launch the application, it sends debugging information that I see in the Xcode Devices panel. Unfortunately, the same console is dotted with OS logs that change my application logs very quickly. I can copy them to a file and grep them after I have finished, but I would like to do this in real time so that I only see my own application logs.

Is it possible? If so, how?

+6
source share
3 answers

By https://developer.apple.com/documentation/os/logging?language=objc

Open /Applications/Utilities/Console.app 

MacOS 10.12 and higher. Works with AppleWatch.

+7
source

Just found this tool:

https://lemonjar.com/iosconsole/

I have nothing to do with this company, I just thought that I am posting it here because I wish I had found it before!

Just install it and you can live filter the device’s console - amazing :)!

+6
source

After months of searching, I found this:

https://github.com/benvium/libimobiledevice-macosx

This is a set of terminal commands that allow you to intercept device logs and grep them to your hearty content.

EDIT: A couple of years after posting this question, it seems that Apple did not include this feature in Xcode, but in a console application. I modified the accepted answer to Warren Stringer to keep this question relevant.

+3
source

Source: https://habr.com/ru/post/984112/


All Articles