在iOS开发过程中,如果测试包出问题,需要获取App内日志进程排查。有以下几种方案可供选择:
方案一:
通过Xcode获取日志:


方案二:
通过 爱思助手、iTools获取。iTools收费,建议使用爱思助手。
使用这种方式,需要在info.plist中添加字段:Application supports iTunes file sharing
,并且设置为YES
:

这样打出的包,就可以在爱思助手上取出日志了:


方案三:
通过发送邮件的方式把本地日志发送出去。
使用的三方库:SKPSMTPMessage
方案四:
通过公司服务器端上传接口,把日志上传到服务器。
网友评论