Xcode 不生成 dSYM 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38696211/
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-09-15 09:05:50  来源:igfitidea点击:

Xcode does not generate dSYM file

iosxcodeinstrumentsbuild-settings

提问by Shanmugaraja G

In my iOS Project, I have set the Generate Debug Symbolsto be Yes, but the .dYSM file is not created in DerivedData folder. I am running this application on my iPhone. Because I need it to map it to do the time profiler, because time profiler shows all the symbols in hex address. That has to be symbolicated to identify the time taking tasks.

在我的 iOS 项目中,我已将 设置Generate Debug SymbolsYes,但未在 DerivedData 文件夹中创建 .dYSM 文件。我正在我的 iPhone 上运行这个应用程序。因为我需要它来映射它来做时间分析器,因为时间分析器以十六进制地址显示所有符号。这必须被符号化以识别耗时的任务。

Thanks in advance.

提前致谢。

回答by Shanmugaraja G

I went through this apple doc. This helped me. This says to set the Debug Information formatto be DWARF AND DSYMin target build settings.

我浏览了这个苹果文档。这对我有帮助。这说来设置Debug Information formatDWARF AND DSYM在目标构建设置。

This apple doc says the following:

这个苹果文档说如下:

By default, Xcode saves symbols as dSYM bundles in the Build folder. Xcode creates the default dSYM bundle path by adding the extension .dSYM to the executable name. To generate dSYM bundles in Xcode, go to the Build Settings area for your project, and select Debug Information Format > Dwarf with dSYM File in the Build Options section

默认情况下,Xcode 将符号作为 dSYM 包保存在 Build 文件夹中。Xcode 通过将扩展名 .dSYM 添加到可执行文件名称来创建默认的 dSYM 包路径。要在 Xcode 中生成 dSYM 包,请转到项目的 Build Settings 区域,然后在 Build Options 部分中选择 Debug Information Format > Dwarf with dSYM File