xcode ios项目需要很长时间才能编译和运行?
问题描述:
我的应用程序花费很长时间(大约10分钟)来编译并在模拟器上运行.该应用程序最初运行良好,但是在添加了SUP静态库后,它需要很长时间才能构建.
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.
xcode版本:4.6
xcode version:4.6
我尝试重置模拟器并重新启动机器
I have tried resetting the simulator and restarting the machine
请帮助.
答
As I answered to a similar question, I wrote an extensive blog post about how I improved iOS development cycle at Spotify:
减少50% iOS Edit-Build-Test周期中的等待时间
它归结为:
1)停止生成dSYM束.
1) Stop generating dSYM bundles.
2)如果使用Clang,请避免使用-O4进行编译.
2) Avoid compiling with -O4 if using Clang.