来自设备的 dSYM 文件 [英] dSYM file from device

查看:26
本文介绍了来自设备的 dSYM 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序崩溃了,两天来我找不到重现崩溃的确切方法.所以,我想解码 dSYM 文件,看看有什么问题(希望有帮助).如何从设备中获取 dSYM 文件?

My application is crashing, and I cannot find an exact way how to reproduce the crash for two days. So, I would like to decode the dSYM file, and to see there what's the problem (hoping it helps). How can I get the dSYM file from the device?

推荐答案

您可能需要从 Xcode 构建产品中获取 dSYM.

You will probably need to get the dSYM from the Xcode build products.

  1. 打开 Xcode Organizer(在 Xcode 中查看 Window -> Organizer)
  2. 转到存档选项卡并选择相关项目的崩溃构建
  3. 选择分发,然后选择导出为 Xcode 存档
  4. 找到您导出的存档(.xcarchive 文件),按住 Control 单击它并选择查看包内容
  5. 您的 dSYM 将位于 Xcode 存档内容的 dSYMs 子文件夹中

但是,获取堆栈跟踪的一种更简单的方法是在 iOS 模拟器中或在 Xcode 中的系留 iOS 设备上运行时使应用程序崩溃(即使用 Product -> 在 Xcode 中运行时),或者通过连接您的设备并在 Xcode Organizer 设备选项卡的设备部分查看去符号化的崩溃报告.

But, a far easier way to get the stack trace is to either make the app crash while running in the iOS Simulator or on a tethered iOS device in Xcode (i.e. when running with Product -> Run in Xcode), or by connecting your device and viewing the desymbolicated crash reports in the Devices section of the Xcode Organiser Devices tab.

(以上所有内容均假设您已在可以访问的机器上使用 Xcode 构建应用程序,并且您已将构建文件保存在 Xcode Organizer 中.)

(The above all assumes that you've build the app in Xcode on a machine you can access and you've kept the archives for the build in the Xcode Organizer.)

有关更多信息,请参阅 Apple 的技术说明:理解和分析 iOS 应用程序崩溃报告.

For more information see Apple's tech note: Understanding and Analyzing iOS Application Crash Reports.

这篇关于来自设备的 dSYM 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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