什么是 dSYM 以及如何使用它?(iOS SDK)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3656391/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 17:41:20  来源:igfitidea点击:

What's the dSYM and how to use it? (iOS SDK)

debuggingsdkcompilationios

提问by Eonil

Sometimes the compiler produces .dSYM files. I guess this is a debugging related file, but I don't know what it is, and how to use it.

有时编译器会生成 .dSYM 文件。我猜这是一个调试相关的文件,但我不知道它是什么,以及如何使用它。

What is a .dSYM? How do I use it?

什么是 .dSYM?我如何使用它?

回答by Tomer Even

dSYM files store the debug symbols for your app

dSYM 文件存储应用程序的调试符号

Services like crashlytics use it to replace the symbols in the crash logs with the appropriate methods names so it will be readable and will make sense.

像 crashlytics 之类的服务使用它来用适当的方法名称替换崩溃日志中的符号,因此它是可读的并且有意义的。

The benefit of using the dSYM is that you don't need to ship your App with it symbols making it harder to reverse engineer it and also reduce your binary size

使用 dSYM 的好处是您不需要随附符号一起发送您的应用程序,从而更难对其进行逆向工程并减少您的二进制文件大小

In order to use to symbolicate the crash log you need to drag the crash log into the device's device logs in the organizer of the machine that compiled the app binary (a machine that stores the dSYM)

为了用于象征崩溃日志,您需要将崩溃日志拖到编译应用程序二进制文件的机器(存储 dSYM 的机器)的组织器中的设备的设备日志中

If you have the dSYM but don't have the machine the compiled the app binary follow the instructions in thislink in order to install the dSYM into the machine

如果您有 dSYM 但没有机器编译应用程序二进制文件,请按照链接中的说明将 dSYM 安装到机器中

For more information please see apple technical note TN2151

更多信息请参见苹果技术说明TN2151