iphone - 象征 iPhone 应用程序崩溃

标签 iphone logging crash organizer symbolicatecrash

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

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.

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

  • 我打开了 xcode Organizer,我的 iPhone 设备上有崩溃日志
  • App 和 dsym 文件位于桌面上的 xcode 项目中

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

欢迎任何评论。

干杯。

戈蒂耶。

最佳答案

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

在 Xcode 项目导航器中,单击您的项目,然后单击“build设置”。当您归档应用程序时,Xcode 默认使用 Release 配置。您只想为发布配置设置以下值,因此您必须展开所有尚未展开的设置,以允许您在每个配置的基础上进行设置。

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

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

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

仅供引用,我在研究此页面后弄清楚了这一切:https://web.archive.org/web/20110727155234/http://developer.apple.com/tools/xcode/symbolizingcrashdumps.html

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

关于iphone - 象征 iPhone 应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2697067/

相关文章:

iphone - 在哪里保存 100 个 NSString + 其他类型

ios - 在 uitabbarcontroller 中更改选项卡名称

node.js - winston 记录到文件不起作用

ios - 在删除了 .xib 的设备上更新应用程序会使应用程序崩溃

ios - 如何在键盘选择菜单中编辑自定义键盘名称

java - 如何在 Log4J XML 配置中禁用 isInfoEnabled

python - Google Stackdriver 未按 Google Kubernetes Engine 的预期显示结构条目日志

objective-c - 创建NSError *导致应用程序崩溃

lua - 在Lua中,如何在用户将值留空后防止程序崩溃?

iphone - 重命名文档目录的文件夹