简体   繁体   English

来自设备的dSYM文件

[英]dSYM file from device

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). 所以,我想解码dSYM文件,看看有什么问题(希望它有所帮助)。 How can I get the dSYM file from the device? 如何从设备获取dSYM文件?

You will probably need to get the dSYM from the Xcode build products. 您可能需要从Xcode构建产品中获取dSYM。

  1. Open the Xcode Organizer (in Xcode see Window -> Organizer) 打开Xcode Organizer(在Xcode中查看Window - > Organizer)
  2. Go to the Archives tab and select the crashing build of the relevant project 转到“存档”选项卡,然后选择相关项目的崩溃构建
  3. Select Distribute, then choose Export as Xcode Archive 选择Distribute,然后选择Export as Xcode Archive
  4. Locate your exported archive (.xcarchive file), control-click on it and select View Package Contents 找到导出的存档(.xcarchive文件),按住Control键并单击它,然后选择查看包内容
  5. Your dSYM will be in the dSYMs subfolder of the Xcode Archive contents 您的dSYM将位于Xcode Archive内容的dSYMs子文件夹中

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 (ie 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. 但是,更容易获得堆栈跟踪的方法是在iOS模拟器中运行时使应用程序崩溃,或者在Xcode中使用系留iOS设备(即使用产品运行 - >在Xcode中运行),或者连接设备并在Xcode Organizer Devices选项卡的Devices部分中查看desymbolicated崩溃报告。

(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.) (以上都假定您已经在可以访问的计算机上在Xcode中构建应用程序,并且您已在Xcode管理器中保留了构建的存档。)

For more information see Apple's tech note: Understanding and Analyzing iOS Application Crash Reports . 有关更多信息,请参阅Apple的技术说明: 了解和分析iOS应用程序崩溃报告

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM