“生成 dSYM 文件”在 XCode 4.5 中需要很长时间

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

"Generating dSYM file" takes ages in XCode 4.5

xcodexcode4compilation

提问by Mr. Boy

Every time I build in XCode 4.5 I note this step takes over a minute, in a full rebuild this step is probably as long as everything else in total!

每次我在 XCode 4.5 中构建时,我都会注意到这一步需要一分钟多的时间,在完全重建中,这一步可能与其他所有内容一样长!

I previously used XCode 3.2.6 and building in 4.5 is far slower. Is there anything I can do to improve this? Is there any information on what a dSYM does, I don't recall ever seeing it on 3.2.6.

我以前使用过 XCode 3.2.6 并且在 4.5 中构建要慢得多。有什么我可以做的来改善这个吗?是否有任何关于 dSYM 功能的信息,我不记得在 3.2.6 上见过它。

采纳答案by Michael Dautermann

a dSYM file is used to resymbolicate your crash reports from users. Check out this Apple Tech Note, specifically the "Analyzing Crash Reports" section).

dSYM 文件用于重新符号化来自用户的崩溃报告。查看此 Apple 技术说明,特别是“分析崩溃报告”部分)

To speed things up, you could always turn off dSYM generation for your DEBUG builds and then turn it on for ADHOC and/or Store builds. Here is a related questionthat talks a bit about that.

为了加快速度,您始终可以为 DEBUG 构建关闭 dSYM 生成,然后为 ADHOC 和/或 Store 构建打开它。这是一个相关的问题,讨论了一点。

回答by Jason Molenda

dsymutil's run time is largely determined by the amount of debug information it needs to process to create the dSYM. Chances are you are using a different compiler in Xcode 3.2.6 vrs. Xcode 4.5, or the 4.5 compiler is emitting more/better debug information so the dsymutil time is longer.

dsymutil 的运行时间很大程度上取决于它需要处理以创建 dSYM 的调试信息量。您可能在 Xcode 3.2.6 vrs 中使用了不同的编译器。Xcode 4.5 或 4.5 编译器发出更多/更好的调试信息,因此 dsymutil 时间更长。