博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ios iphone 将log在终端输出
阅读量:6700 次
发布时间:2019-06-25

本文共 1133 字,大约阅读时间需要 3 分钟。

对于模拟器,其在终端的log文件位于:   ~/Library/Logs/CoreSimulator/C4B94BA6-EF08-4AD2-AE7D-1A3A2E2AC545/system.log

 

对于真机:

Here's another tip using the great libimobiledevice library , originally built to manage iOS devices on Linux.
 
This method shows you how you can view the log output (e.g. what you see in Xcode when running in debug mode) on any app, whether it's an AppStore build or an AdHoc build.
 
Some apps are more talkative than others - it all depends on how careful the developers were to remove log messages in release builds.
 
I find this most useful for debugging issues in release versions of our apps. If a user reports a sequence of actions causes a crash, you can try this out while watching the log from your app.
Here's how:
  • Grab the libimobiledevice binary for Mac OS X from my github account at
  • Follow the install instructions here:
 
 
Connect your device, o pen 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

转载地址:http://ligoo.baihongyu.com/

你可能感兴趣的文章
第 三 十 八 天:Linux 的 LVM 逻 辑 卷 管 理
查看>>
Flex通过Blazeds利用Remoteservice与后台java消息推送
查看>>
python3 实现对比conf 文件差异
查看>>
vueX的使用
查看>>
Android的TextView在显示文字的时候,如果有段中文有英文,有中文,有中文标点符号,你会发现,当要换行的时候遇到中文标点, 这一行就会空出很多空格出来...
查看>>
bupt summer training for 16 #3 ——构造
查看>>
github 如何设置项目的语言显示
查看>>
树莓派(Raspberry Pi):完美的家用服务器
查看>>
微信jssdk遇到的一些问题汇总
查看>>
Code Chef December Challenge 2018题解
查看>>
【IntelliJ IDEA】添加一个新的tomcat,tomcat启动无法访问欢迎页面,空白页,404
查看>>
PE文件RV转FOA及FOA转RVA
查看>>
哪些要素会让咱们呈现抑郁症的病症
查看>>
mysql
查看>>
使用vue+webpack从零搭建项目
查看>>
linux命令二
查看>>
《面向模式的软件体系结构2-用于并发和网络化对象模式》读书笔记(13)--- 线程安全接口和双检查加锁优化...
查看>>
navicat 官方使用手册,中文版,快捷键大全
查看>>
结对开发:电梯调度(2)
查看>>
Java中的继承性特性
查看>>