象征adhoc iphone应用程序崩溃 [英] Symbolicate adhoc iphone app crashes

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

问题描述

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


,匹配的
二进制,其.dSYM文件,
符号化比较容易。
Xcode Organizer窗口有一个选项卡,用于
当前
选定设备的崩溃报告。您可以在
此选项卡中查看
外部接收的崩溃报告,只需将它们放在
相应的目录中。这是
,与第一部分中描述的Mac OS X目录
相同。它
无论你有
被绑定到哪个设备,但
你放置崩溃报告的目录必须是
目录为绑定和
选择设备。



不必将
二进制文件和.dSYM文件放在任何
特定位置。 Xcode使用
Spotlight和UUID来定位
正确的文件。有必要,
虽然,两个文件都在同一个
目录,这个目录是
一个由Spotlight索引。
在您的主目录中的任何地方都应该
很好。


但它不适用于我。 。这是我做的:




  • 我打开xcode组织者,我有我的iphone设备崩溃日志

  • 应用和dsym文件在我的桌面上的xcode项目中



其余的应该是自动的,对吗?但崩溃日志尚未象征化...



欢迎任何意见。



Gotye。

解决方案

我一直在努力工作几天, 最后想出来了。我无法从我安装到我的手机上的任何存档应用程序获取符号日志。对我来说,这是一个问题的生成设置,虽然我注意到,它能够象征日志从一些旧的构建,以及我按照这些步骤。 YMMV可能会随着旧版本的崩溃日志而变化。我能够在iOS 4.3.1上的Xcode 4.0.1中遵循这些步骤后获得符号化的日志。



在Xcode项目导航器中,单击您的项目,然后单击构建设置。当您归档应用程序时,Xcode默认使用发布配置。您只需为发布配置设置以下值,因此您必须展开尚未扩展的任何设置,以允许您按照配置进行设置。



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




  • 生成调试符号:是

  • 调试信息格式:DWARF with dSYM File

  • 部署后处理:是

  • :是

  • 使用单独的条:是

  • 复制期间删除调试符号:否

  • 所有符号



设置完毕后,存档并重新安装应用程序。从生成的归档生成的新崩溃报告应该正确标记。对我来说,许多旧的崩溃报告也遵循这些步骤,但是我不知道如果建立是非常不同的结果是准确的符号化正确。



,在研究此页面后,我想出了所有这一切: 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 can't manage to make my code symbolicated ... I read the part "below" :

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.

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 :

  • I opened xcode organizer and I had my iphone device with crash logs
  • App and dsym files are in my xcode project which is on my desktop

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

Any comments welcome.

Cheers.

Gotye.

解决方案

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.

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:

  • Generate Debug Symbols: Yes
  • Debug Information Format: DWARF with dSYM File
  • Deployment Postprocessing: Yes
  • Strip Linked Product: Yes
  • Use Separate Strip: Yes
  • Strip Debug Symbols During Copy: No
  • Strip Style: All Symbols

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.

For reference, I figured all this out after studying this page: http://developer.apple.com/tools/xcode/symbolizingcrashdumps.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

Hope this helps!

Dan

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

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