xcode ios 项目需要很长时间才能编译和运行?

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

xcode ios project taking long time to compile and run?

iosxcodeios-simulatorsup

提问by user2825821

My application is taking very long time around 10 minutes to compile and run on simulator. The application was running fine initially however after adding SUP static library it is taking very long time to build.

我的应用程序在模拟器上编译和运行需要很长时间,大约需要 10 分钟。该应用程序最初运行良好,但是在添加 SUP 静态库后,构建需要很长时间。

xcode version:4.6

xcode 版本:4.6

I have tried resetting the simulator and restarting the machine

我尝试重置模拟器并重新启动机器

Please help.

请帮忙。

回答by fons

As I answered to a similar question, I wrote an extensive blog post about how I improved iOS development cycle at Spotify:

当我回答一个类似的问题时,我写了一篇关于我如何改进 Spotify 的 iOS 开发周期的博文:

Shaving off 50% waiting time from the iOS Edit-Build-Test cycle

从 iOS 编辑-构建-测试周期中减少 50% 的等待时间

It boiled down to:

它归结为:

1) Stop generating dSYM bundles.

1) 停止生成 dSYM 包。

2) Avoid compiling with -O4 if using Clang.

2) 如果使用 Clang,请避免使用 -O4 进行编译。