提高xcode编译运行速度

1、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.

share improve this question
 
 
are you "building for testing" or "building for running" or archiving or? And in your scheme, in the "Test" section, are you testing with the "Release" or "Distribution" version of the app or the "Debug" version of the app? –   Michael Dautermann  Dec 10 '11 at 6:46 
 
I'm building for running, and I'm building and testing the "Debug" version of the app. I'm also running on an actual device (not the simulator), if that makes a difference. –   user1090937  Dec 10 '11 at 6:54
 
Did you ever figure out if this can be turned off? –   Sam Washburn  Jan 16 '12 at 4:31
up vote
down vote accepted

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.

share improve this answer
 

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).

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.

enter image description here

share improve this answer
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值