XCode:每次应用程序运行时都会重复“生成 dSYM 文件”步骤

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

XCode: "Generating dSYM file" step is repeated on every application run

xcode

提问by user1090937

The step is repeated when I stop the application and hit run again, even if no code or other changes have been done to the project. This is frustrating as I'm working on a large codebase and the step takes a long time, killing iteration times.

当我停止应用程序并再次点击运行时,即使没有对项目进行任何代码或其他更改,也会重复该步骤。这令人沮丧,因为我正在处理大型代码库并且该步骤需要很长时间,从而导致迭代次数减少。

If anyone has any pointers for where to look to determine why this step is done on every run, it would be appreciated.

如果有人有任何关于在哪里查看以确定为什么在每次运行时都完成此步骤的任何指示,我们将不胜感激。

回答by fundead

In your project's Build Settings, under Build Options there's the Debug Information Format fields for debug and release - change the appropriate one from 'DWARF with dSYM file' to just 'DWARF'. This should cut your build times down, however it is removing the file that contains debug symbol information about the build.

在您项目的构建设置中,在构建选项下有用于调试和发布的调试信息格式字段 - 将适当的字段从“带有 dSYM 文件的 DWARF”更改为“DWARF”。这应该会减少您的构建时间,但是它会删除包含有关构建的调试符号信息的文件。

回答by Steven Lu

I noticed you can launch your app yourself and attach the debugger. This skips that step. My project isn't large enough for this dSYM step to take longer than 2 seconds yet (but I've already noticed it go up to this 2 second mark now that I am linking in a sizable static library).

我注意到您可以自己启动您的应用程序并附加调试器。这跳过了这一步。我的项目还不够大,这个 dSYM 步骤需要超过 2 秒(但我已经注意到它现在上升到这个 2 秒标记,因为我正在链接一个相当大的静态库)。

Furthermore, here on Xcode 4.6.3, I see an option to run without building. In my limited testing it appears to skip all build-related steps.

此外,在 Xcode 4.6.3 上,我看到了一个无需构建即可运行的选项。在我有限的测试中,它似乎跳过了所有与构建相关的步骤。

enter image description here

在此处输入图片说明