Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2397580
  • 博文数量: 328
  • 博客积分: 4302
  • 博客等级: 上校
  • 技术积分: 5486
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-01 11:14
个人简介

悲剧,绝对的悲剧,悲剧中的悲剧。

文章分类

全部博文(328)

文章存档

2017年(6)

2016年(18)

2015年(28)

2014年(73)

2013年(62)

2012年(58)

2011年(55)

2010年(28)

分类: iOS平台

2016-02-05 19:46:37

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:

  1. Choose Window -> Devices from the Xcode menu.
  2. Choose the device in the left column.
  3. 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

  1. ruby -e "$(curl -fsSL )"

  2. 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:

  3. brew install -v --devel --fresh automake autoconf libtool wget libimobiledevice

  4. Then run ideviceinstaller:

  5. brew install -v --HEAD --fresh --build-from-source ideviceinstaller

  6. 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:

  7. idevicesyslog

  8. 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):

  9. idevicepair pair

  10. You can also unpair using the unpair verb:

  11. idevicepair unpair
阅读(1534) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~