Objective:
This article discusses how to view the log output in the console console in real time.
First, Xcode
Open the Devices interface via Window->devices, select our phone, and see the log of the process output running in your phone. Second, Libimobiledevice
Installing Libimobiledevice is simple, at the command line type:
Brew Install--HEAD libimobiledevice Note, need to add –HEAD option, if not add, install is old version, does not support iOS10 phone, so install, need to add –HEAD option
1. Using Idevicesyslog
At the command line, enter: Idevicesyslog
You can see all the logs on your phone on the screen. 2. View the logs we want
1>> iphone.log & The command is to import the log into the Iphone.log file, and it is executed in the background. 2) use tail--'qq' # to view the line containing QQ
such as: third, the console
After using various methods to view the app log, still feel that the Apple system comes with tools to use the most convenient, do not install, without command line, fool-like operation, very convenient.
Connect your phone, open the console app in launchpad other files, or search Console.app to open the console app, and you can see our mobile device in the left column, select Yes,
The log on the right output has not only our own app but also the log of other processes, how to filter? Very simple, select one of our logs, right-click on the process name, select Show Process name, then just show the log of our app. If there is no process name in the displayed column name, we can right-click on the other column names and tick the process on the popup menu. Display WeChat print out the log:
Above, according to personal habits to choose tools.
iOS Live View app run log