减少符号化的 dSYM 文件的大小

Reducing size of dSYM files for symbolication

我们正在寻找减少来自 Apple 平台的 dSYM 文件大小的方法。我们需要 dSYM 文件来符号化崩溃的堆栈跟踪,我在 Crashlytics 博客中阅读 this:

These mappings actually hold much more than needed just for symbolication, presenting some opportunities for optimization. They have everything required for a generalized symbolic debugger to step through and inspect your program, which may be a huge amount of information. On iOS, we have seen dSYMs greater than 1GB in size! This is a real opportunity for optimization, and we take advantage of this in two ways. First, we extract just the mapping info we need into a lightweight, platform-agnostic format. This results in a typical space-saving of 20x when compared to an iOS dSYM.

将大小减小 20 倍听起来不错,但我发现很少有关于如何做到这一点的信息。我是否需要学习 Mach-O DWARF 的详细信息才能实现此目的,或者某些命令行工具可以做到这一点?我也想知道剥离后的版本是否可以直接用于符号化。

谢谢。

Crashlytics 将 dSYM 转换为 cSYM,并使用这些 cSYM 进行符号化。这种转换发生在客户的 Mac 上。您可能想查看实际上传到 crashlytics 的此 cSYM 文件的最终大小。