简体   繁体   English

DSYM和二进制需要符号吗? 还是只是DSYM?

[英]DSYM and binary required to symbolicate? Or just DSYM?

Started using Crashlytics and am curious why only the DSYMs have to be uploaded and not the full .app binary to match. 开始使用Crashlytics并很好奇为什么需要上传DSYM 而不匹配完整的.app二进制文件。 I was under the impression that to symbolicate you needed a binary with matching DSYM file. 我的印象是要象征性地表示您需要一个与DSYM文件匹配的二进制文件。 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 基本上试图弄清楚当我在应用程序中执行的所有操作都运行后生成脚本(该脚本会上传DSYM)时,Crashlytics如何符号化的魔力

Mike from Fabric and Crashlytics here. 来自Fabric和Crashlytics的Mike。

A dSYM file actually contains all the debug symbols of your app needed to symbolicate the crash report. dSYM文件实际上包含符号化崩溃报告所需的应用程序的所有调试符号。 This is why we recommend having your Debug_Information_Format set to "Dwarf with dSYM". 这就是为什么我们建议您将Debug_Information_Format设置为“带有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. 我们还会生成一个唯一的内部版本ID,以便即使内部版本和版本号保持不变,为该版本上载的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." 您还可以从Apple那里获得有关内容的更多信息,但是最重要的部分是:“当编译器将源代码转换为机器代码时,它还会生成调试符号,这些符号将已编译二进制文件中的每条机器指令映射到源于它的源代码。根据调试信息格式(DEBUG_INFORMATION_FORMAT)的构建设置,这些调试符号存储在二进制文件中或随附的调试符号(dSYM)文件中。”

As noted above, the symbols can be in just the dSYM file, hence our recommendation for the setting of Debug_Information_Format . 如上所述,符号可以仅在dSYM文件中,因此建议您设置Debug_Information_Format

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

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