新手区 idevicecrashreport 工具查看 iOS 崩溃日志

xinxi · 2018年08月06日 · 最后由 张婷 回复于 2018年12月17日 · 2780 次阅读

libimobiledevice 工具

  • libimobiledevice 又称 libiphone,是一个开源包,可以让 Linux 支持连接 iPhone/iPod Touch 等 iOS 设备,类似 androi 的 adb
  • 相关安装链接:https://testerhome.com/topics/15423

idevicecrashreport 工具

  • libimobiledevice 中的 idevicecrashreport 工具可以导出真机 crash 日志,位置在 tools 目录下.

参数介绍:

  • -e, --extract extract raw crash report into separate '.crash' file

  • -k, --keep copy but do not remove crash reports from device
    保存到本地文件夹中,需要先手动创建

  • -d, --debug enable communication debugging

  • -u, --udid UDID target specific device by its 40-digit device UDID
    设备的 udid

  • -h, --help prints usage information

用法:

idevicecrashreport -u 25228488f97b79c515ab32a2792b83e24ee022de -e -k /Users/xinxi/Desktop/crashnew

缺点

  • 在本地文件夹中导出手机所有的 crash 日志,没有过滤自定包名的功能

  • 通过修改源码可以增加 grep 功能,导出自定包名的 crash 日志

增加 grep 包名版本

下载地址

https://github.com/xinxi1990/Mylibimobiledevice

用法

idevicecrashreport -u 25228488f97b79c515ab32a2792b83e24ee022de -e 
 -g Luo**FM  -k /Users/xinxi/Desktop/crashnew
共收到 1 条回复 时间 点赞

执行./autogen.sh 的时候遇见 openssl 版本报错的情况,解决方法如下:
https://www.jianshu.com/p/aff1773943fd

需要 登录 後方可回應,如果你還沒有帳號按這裡 注册