象征性的 iPhone 应用程序崩溃报告 [英] Symbolicating iPhone App Crash Reports

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

问题描述

我想尝试用符号表示我的 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.

我做错了吗?

推荐答案

分析apple崩溃报告的步骤:

Steps to analyze crash report from apple:

  1. 将推送到应用商店的发布 .app 文件、发布时创建的 .dSYM 文件和从 APPLE 收到的崩溃报告复制到文件夹中.

打开终端应用程序并转到上面创建的文件夹(使用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.

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

这将显示导致崩溃的确切行和方法名称.

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

例如:[classname functionName:];-510

象征性的 IPA

如果我们使用 IPA 进行符号化 - 只需将扩展名 .ipa 重命名为 .zip ,然后将其解压缩,我们就可以得到一个包含 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.

注意

这仅在应用程序二进制文件没有剥离符号时才有效.默认情况下,发布版本剥离了符号.我们可以在项目构建设置复制期间剥离调试符号"中将其更改为否.

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.

更多详情请看这篇帖子

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

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