需要DSYM和二进制符号吗?或者只是DSYM? [英] DSYM and binary required to symbolicate? Or just DSYM?

查看:175
本文介绍了需要DSYM和二进制符号吗?或者只是DSYM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始使用Crashlytics并且好奇为什么必须上传DSYM并且要匹配的完整.app二进制文件。我的印象是,为了象征你需要一个匹配DSYM文件的二进制文件。那不是这样吗?基本上试图找出Crashlytics如何在我的应用程序中执行所有操作的魔力运行上传DSYM的构建后脚本

Started using Crashlytics and am curious why only the DSYMs have to be uploaded and not the full .app binary to match. I was under the impression that to symbolicate you needed a binary with matching DSYM file. Is that not the case? Basically trying to figure out the magic of how Crashlytics symbolicates when all I do in my app is run the post-build script that uploads the DSYM

推荐答案

Mike来自Fabric和Crashlytics。

Mike from Fabric and Crashlytics here.

dSYM文件实际上包含了代表崩溃报告所需的应用程序的所有调试符号。这就是为什么我们建议将 Debug_Information_Format 设置为DSTF with dSYM。我们还生成一个唯一的构建ID,这样即使构建和版本号不变,为该构建上载的dSYM对于需要符号化的任何崩溃报告仍然是准确的。

A dSYM file actually contains all the debug symbols of your app needed to symbolicate the crash report. This is why we recommend having your Debug_Information_Format set to "Dwarf with dSYM". We also generate a unique build id so that even if the build and version number don't change, the dSYM uploaded for that build remains accurate for any crash reports that need to be symbolicated.

您还可以阅读这来自Apple ,但最重要的部分是:当编译器将源代码转换为机器代码时,它还会生成调试符号,将编译后的二进制文件中的每台机器指令映射回它源自的源代码行。根据调试信息格式(DEBUG_INFORMATION_FORMAT)构建设置,这些调试符号存储在二进制文件或伴随调试符号(dSYM)文件中。

You can also read more information on this from Apple, but the most important part is this: "As the compiler translates your source code into machine code, it also generates debug symbols which map each machine instruction in the compiled binary back to the line of source code from which it originated. Depending on the Debug Information Format (DEBUG_INFORMATION_FORMAT) build setting, these debug symbols are stored inside the binary or in a companion Debug Symbol (dSYM) file."

如上所述,符号可以只在dSYM文件中,因此我们建议设置 Debug_Information_Format

As noted above, the symbols can be in just the dSYM file, hence our recommendation for the setting of Debug_Information_Format.

这篇关于需要DSYM和二进制符号吗?或者只是DSYM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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