ios 调试篇 ~ 之崩溃报告分析

Analyzing Crash Reports 分析崩溃的日志报告(过程以及步骤)
官网链接

App Distribution Guide附加

我们同构了testflight 或者在store上进行部署的时候,下载和分析崩溃日志。当程序崩溃的时候,就会发送对应的日志到崩溃日志中;
一种方式可以在device中直接导入,Viewing and Importing Crashes in the Devices Window(通过UIDevice来进行查看崩溃日志);

Viewing and Importing Crashes in the Devices Window
通过设备导出device的崩溃文件和同archive 里面找到dsym文件;xcode 会自动符号化这些报告,将机器上的内容转化为人可读的日志报告(这样就可以阅读对应的线程以及线程树的结构);(所以呢,上传的时候不要删除了archives)
Exporting Your App for Testing (iOS, tvOS, watchOS) 参考导出过程;

就是如果我们在打包的时候使用了testfight以及在store上的时候,如果没有设置为bitcode 的时候,就一斤各有了-dsym文件,若是设置了,就需要下载下来;
Viewing Crash Reports in the Crashes Organizer 参考链接

**To download the dSYMs files **(步骤)
In the Archives organizer, select the archive.
Click the Download dSYMs button.

Important: 因为每个符号对应着每个打出来的包,所以,需要唯一的符号,所以建立的时候的号码是增加的;
Setting the Version Number and Build String 设置版本参考

To view crash logs on a device or import a crash report(步骤)
Choose Window > Devices.
If necessary, connect your device to your Mac.
Select the device under Devices, and click the View Device Logs button.A sheet appears displaying the crash logs on the device.
To view a crash log, select it in the left column.View the crash log in the detail view on the right.
To import a crash report, drag the crash report from the Finder to the left column of the sheet.
Click Done.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容