如何表示Apple 发布的Mac OSX 崩溃报告?
For iOS crash reports, it is sufficient to drag and drop the crash report to the Organizer.
Symbolicating iPhone App Crash Reports
But this method doesn't work for Mac OSX crash reports.
How can I symbolicate my Mac OSX crash report ?
Thanks !!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 atos 命令获取应用程序崩溃的行号。
这是一个快速指南:
获得在终端中运行以下命令所需的所有信息后:
atos -o YourApp.app/Contents/MacOS/YourApp -arch x86_64 -l [load-address] [address]
例如,这是堆栈跟踪的摘录:
我可以看到“代码类型”是x86_64,线程 2 崩溃了,并且在第 4 行我的代码正在运行,因此我们获得了所需的地址。使用此信息,我运行以下命令:
返回:
告诉我我的应用程序在 somefile.c 的第 135 行崩溃
You can use the atos command to get the line number where the app crashed.
Heres a quick guide:
Once you've got all the information you need to run the following in the terminal:
atos -o YourApp.app/Contents/MacOS/YourApp -arch x86_64 -l [load-address] [address]
For example, heres an extract from a stacktrace:
I can see that the "Code Type" is x86_64, that Thread 2 crashed, and that on line 4 my code was running so we have the addresses we need. Using this information I run the following:
This returns:
Telling me my app crashed at line 135 of somefile.c
@inkjet 的上述评论值得有自己的答案。
他构建了一个应用程序,可以从 dsym 和 .crash 文件中进行完整的符号化。
将其全部放在一起:
从此处下载 Mac Symbolicator
打开 Xcode,选择窗口->管理器,转到存档选项卡并找到
发生崩溃的应用程序版本。
右键单击应用程序存档并选择“在 Finder 中显示”
右键单击 .xarchive,选择“显示内容”并查找这
AppName.dSYM目录
将您的 .crash 文件和 AppName.dsym 拖到 Sumbolon
魔法发生了
@inkjet 's comment above deserves its own answer.
He built an app that does a full symbolication from your dsym and .crash file.
putting it all together:
download Mac Symbolicator from here
Open Xcode, select Window->Organizer, goto the Archive tab and find
the version of your app that experienced the crash.
Right click on the app archive and select "Show in Finder"
Right click on the .xarchive, select "Show Contents" and find the
AppName.dSYM directory
Drag your .crash file and AppName.dsym to Sumbolon
Magic happens
此链接
此链接解释了用崩溃行号表示崩溃日志的所有内容。你只需要在同一个文件夹中有 .dsyms 文件、.app 文件和崩溃日志,
我环顾四周,发现没有比这更好的了。所以我发布它希望这对其他人有帮助。
this link
this link explains everything to symbolicate the crash log with the line no of crash. you just need to have .dsyms file, .app file and crash log in same folder
i looked around and find nothing better than this. so i am posting it by hoping this will help others.