如何解码dSYM文件(崩溃日志)?

编程入门 行业动态 更新时间:2024-10-28 19:31:27
本文介绍了如何解码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文件(崩溃日志)?

本文发布于:2023-10-30 13:32:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1542998.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   日志   dSYM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!