象征性的临时 iPhone 应用程序崩溃 [英] Symbolicate adhoc iphone app crashes

查看:12
本文介绍了象征性的临时 iPhone 应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使我的代码符号化......我阅读了下面"的部分:

I can't manage to make my code symbolicated ... I read the part "below" :

给定一个崩溃报告,匹配的二进制文件及其 .dSYM 文件,符号化相对容易.这Xcode Organizer 窗口有一个选项卡目前的崩溃报告选定的设备.您可以查看外部收到的崩溃报告此选项卡 - 只需将它们放在合适的目录.这是与 Mac OS X 目录相同在第一节中描述.它不管你有什么设备系留,但其中的目录你放置的崩溃报告必须是系留目录和选择的设备.

Given a crash report, the matching binary, and its .dSYM file, symbolication is relatively easy. The Xcode Organizer window has a tab for crash reports of the currently selected device. You can view externally received crash reports in this tab - just place them in the appropriate directory. This is the same as the Mac OS X directory described in the first section. It doesn't matter which device you have tethered, but the directory in which you place the crash report must be the directory for the tethered and selected device.

没有必要放置二进制和 .dSYM 文件在任何特定位置.Xcode 使用Spotlight 和 UUID 来定位正确的文件.有必要,但是,这两个文件都在同一个目录,并且该目录是由 Spotlight 索引的一个.你的主目录中的任何地方都应该没事.

It is not necessary to place the binary and .dSYM file in any particular location. Xcode uses Spotlight and the UUID to locate the correct files. It is necessary, though, that both files be in the same directory and that this directory is one that is indexed by Spotlight. Anywhere in your home directory should be fine.

但这对我不起作用......这就是我所做的:

But it doesn't work for me ... here is what I did :

  • 我打开了 xcode 管理器,我的 iphone 设备出现了崩溃日志
  • App 和 dsym 文件在我桌面上的 xcode 项目中

其余的都应该是自动的,对吧?但是崩溃日志还没有符号化...

All the rest should be automatic, right ? but crash logs aren't symbolicated yet ...

欢迎评论.

干杯.

哥蒂.

推荐答案

我已经为此苦苦挣扎了好几天,终于弄明白了.我无法从我安装到手机上的任何存档应用程序中获取符号化日志.对我来说,这是构建设置的问题,尽管我确实注意到在我执行这些步骤之后它也能够符号化来自一些旧版本的日志.YMMV 可能会因旧版本的崩溃日志而异.在 iOS 4.3.1 上的 Xcode 4.0.1 中执行这些步骤后,我能够获得符号化日志.

I've been struggling with this for several days and finally figured it out. I wasn't able to get symbolicated logs from any Archived application I installed to my phone. For me, it was a problem with the build settings, although I did notice that it was able to symbolicate logs from some older builds as well after I followed these steps. YMMV may vary with crash logs from older builds. I was able to get symbolicated logs after following these steps in Xcode 4.0.1 on iOS 4.3.1.

在 Xcode 项目导航器中,单击您的项目,然后单击构建设置.当你归档你的应用程序时,Xcode 默认使用 Release 配置.您只想为 Release 配置设置以下值,因此您必须展开任何尚未展开的设置,以允许您在每个配置的基础上进行设置.

In the Xcode Project navigator, click on your project and then click Build Settings. When you archive your application, Xcode uses the Release configuration by default. You'll want to set the following values for the Release configuration only, so you'll have to expand any settings that aren't already expanded to allow you to set it on a per-configuration basis.

确保为发布配置设置了这些值:

Ensure these values are set for the Release configuration:

  • 生成调试符号:是
  • 调试信息格式:带有 dSYM 文件的 DWARF
  • 部署后处理:是
  • 剥离链接产品:是
  • 使用单独的条带:是
  • 在复制期间去除调试符号:否
  • 条形样式:所有符号

设置完成后,归档并重新安装您的应用程序.从生成的存档生成的新崩溃报告应正确符号化.对我来说,在执行这些步骤后,许多旧的崩溃报告也可以正确表示,尽管我不确定如果构建非常不同,结果会有多准确.

Once those are set, Archive and reinstall your application. New crash reports generated from the resulting archive should be symbolicated correctly. For me, many old crash reports also symbolicated correctly after following these steps although I'm not sure how accurate the results would be if the builds were very different.

作为参考,我在研究了这个页面后发现了这一切:http://developer.apple.com/tools/xcode/symbolizingcrashdumps.html

For reference, I figured all this out after studying this page: http://developer.apple.com/tools/xcode/symbolizingcrashdumps.html

我还找到了这个页面,如果您想弄清楚特定构建设置的作用,它会很方便:http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html

I also found this page, which is handy if you're trying to figure out what a particular build setting does: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html

希望这会有所帮助!

这篇关于象征性的临时 iPhone 应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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