象征着iPhone App崩溃报告 [英] Symbolicating iPhone App Crash Reports

查看:179
本文介绍了象征着iPhone App崩溃报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设计我的iPhone应用程序的崩溃报告。

I'm looking to try and symbolicate my iPhone app's crash reports.

我从iTunes Connect检索了崩溃报告。我有我提交到App Store的应用程序二进制文件,我有作为构建的一部分生成的dSYM文件。

I retrieved the crash reports from iTunes Connect. I have the application binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build.

我将所有这些文件放在一起一个由聚光灯索引的目录。

I have all of these files together inside a single directory that is indexed by spotlight.

现在怎么办?

我试过调用:

symbolicatecrash crashreport.crash myApp.app.dSYM

它只是输出崩溃报告中的相同文本,而不是符号化。

and it just outputs the same text that is in the crash report to start with, not symbolicated.

我做错了什么?

推荐答案

从苹果分析崩溃报告的步骤:

Steps to analyze crash report from apple:


  1. 将推送到appstore的.app文件复制,发布时创建的.dSYM文件和从APPLE收到的崩溃报告到 FOLDER

打开终端应用程序并转到上面创建的文件夹(使用 cd 命令)

OPEN terminal application and go to the folder created above (using cd command)

运行 atos -arch armv7 -o APPNAME.app/APPNAME MEMORY_LOCATION_OF_CRASH 。内存位置应该是应用程序根据报告崩溃的位置。

Run atos -arch armv7 -o APPNAME.app/APPNAME MEMORY_LOCATION_OF_CRASH. The memory location should be the one at which the app crashed as per the report.

Ex: atos -arch armv7 -o'APPNAME.app'/'APPNAME'0x0003b508

这会显示确切的行,方法名称导致崩溃。

This would show you the exact line, method name which resulted in crash.

Ex: [classname functionName:]; -510

符号化IPA

如果我们使用IPA进行符号化 - 只需使用.zip重命名扩展名.ipa,然后将其解压缩,然后我们就可以获得包含app的Payload文件夹。在这种情况下,我们不需要.dSYM文件。

if we use IPA for symbolicating - just rename the extention .ipa with .zip , extract it then we can get a Payload Folder which contain app. In this case we don't need .dSYM file.

注意

这只适用于app二进制文件没有符号的情况剥离。默认情况下,版本构建剥离了符号。我们可以在项目构建设置将复制期间的调试符号更改为NO。

This can only work if the app binary does not have symbols stripped. By default release builds stripped the symbols. We can change it in project build settings "Strip Debug Symbols During Copy" to NO.

更多详细信息,请参阅发布

More details see this post

这篇关于象征着iPhone App崩溃报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆