如何解码dSYM文件(崩溃日志)? [英] How to decode a dSYM file (crash log)?

查看:309
本文介绍了如何解码dSYM文件(崩溃日志)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iOS应用程式崩溃了。我想用dSYM文件读取崩溃日志。

My iOS application crashed. I would like to read the crash log with the dSYM file. How is it possible?

推荐答案

首先,您需要三个文件:dSYM文件,应用程序文件和崩溃日志。

First of all, you need three files: the dSYM file, the application file and the crash log.

在项目导航器中打开X代码,显示Products文件夹,并在应用程序文件中显示在查找器中显示。在这里你会发现dSYM文件。将它们复制到文件夹。

Open the X Code, in the project navigator reveal the Products folder, and "Show in finder" the app file. Here you will find the dSYM file too. Copy them to a folder.

现在打开终端,导航到您先前复制的两个文件的文件夹。运行: dwarfdump --uuid Application_name.app/Application_name
您应该会收到应用程序的UUID。
运行以下命令: dwarfdump --uuid Application_name.app.dSYM - 您将再次收到UUID,该UUID应与先前收到的UUID匹配。

Now open the terminal, and navigate to the folder you copied previously the two files. Run: dwarfdump --uuid Application_name.app/Application_name You should receive the application's UUID. Run the following command: dwarfdump --uuid Application_name.app.dSYM - you will receive the UUID again, which should match the previously received UUID.

打开崩溃日志(X代码 - 管理器 - 崩溃),找到出现二进制图像标题的行。这里是第一行中的另一个UUID,它应该与以前在终端中接收的UUID匹配。

Open the crash log (X Code - Organizer - crashes), and find the line where appears the "Binary images" title. Here is another UUID in the first line, which should match again with the previously received in the terminal.

现在,您确信崩溃已登录到您的构建检查,所以再次打开崩溃日志文件,找到线程0部分,并且应该有两行与您的应用程序名称和两个地址。例如:

Now, you are assured the crash was logged in the build you are examining, so open again the crash log file, find the Thread 0 section, and there should be two lines with your application name and two addresses. Such as:

Application_name 0x123456
Application_name 0x987654

在终端中,现在应该运行: atos -arch armv7 -o address1 address2 (address1和address2应该替换为前两个地址,armv7与您的系统 - 它显示在您获得UUID的行)。

In the terminal you should run now: atos -arch armv7 -o address1 address2 (the address1 and address2 should be replaced with the previous two addresses, and the armv7 with your system's - it is shown at the lines, where you got the UUIDs).

快乐调试!

编辑:我想提及帖子作为我的基础。

I would like to mention this post as base of mine.

这篇关于如何解码dSYM文件(崩溃日志)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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