设备中的dSYM文件 [英] dSYM file from device
问题描述
我的应用程序崩溃了,我无法在两天内找到确切的方法来重现崩溃。因此,我想对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.
- 打开Xcode管理器(在Xcode中,请参见Window-> Organizer)
- 转到档案标签并选择相关项目的崩溃版本
- 选择分发,然后选择导出为Xcode存档
- 找到导出的存档(.xcarchive文件) ,按住Control键并单击它,然后选择查看软件包内容
- 您的dSYM将位于Xcode存档内容的dSYMs子文件夹中
- Open the Xcode Organizer (in Xcode see Window -> Organizer)
- Go to the Archives tab and select the crashing build of the relevant project
- Select Distribute, then choose Export as Xcode Archive
- Locate your exported archive (.xcarchive file), control-click on it and select View Package Contents
- Your dSYM will be in the dSYMs subfolder of the Xcode Archive contents
但是,获取堆栈跟踪的简单得多的方法是使应用程序在iOS模拟器中或在Xcode的系留iOS设备上运行时崩溃(即,与Product-> Run in 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屋!