Two ways to do so.
1. From Xcode
The solution documented by Apple in Technical Q&A QA1747 Debugging Deployed iOS Apps for Xcode 6 is:
-
Choose Window -> Devices from the Xcode menu.
-
Choose the device in the left column.
-
Click the up-triangle at the bottom left of the right hand panel to show the device console.
2. By idevicesyslog
Connect your device, open up Terminal.app and type:
idevicesyslog
Up pops a real-time display of the device's system log.
With it being a console app, you can filter the log using unix commands, such as grep
For instance, see all log messages from a particular app:
idevicesyslog | grep myappname
-
ruby -e "$(curl -fsSL )"
-
-
Once run, follow the prompts to complete the installation. Once homebrew is installed, run the following brew command to download the required components and then libimobiledevice:
-
-
brew install -v --devel --fresh automake autoconf libtool wget libimobiledevice
-
-
Then run ideviceinstaller:
-
-
brew install -v --HEAD --fresh --build-from-source ideviceinstaller
-
-
Once these are installed, you can plug in a paired device, unlock it and use the following command to view the logs on the screen:
-
-
idevicesyslog
-
-
This is akin to running a tail against the device. Again, the device must be paired. You can use the command line (e.g. if you’re running this on Linux) to view the logs, but if you’re not paired you’ll need to use idevicepair to pair your device, followed by the pair verb (which is very different from the pear verb):
-
-
idevicepair pair
-
-
You can also unpair using the unpair verb:
-
-
idevicepair unpair
阅读(1621) | 评论(0) | 转发(0) |