为什么 Xcode 不断地重新编译我未受影响的项目? [英] Why does Xcode keep recompiling my untouched project?

查看:35
本文介绍了为什么 Xcode 不断地重新编译我未受影响的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含多个项目的 Xcode 4 工作区.一切都完美构建并按预期工作,只有 Xcode 经常重新编译文件.如果我点击 Build 按钮,等待编译成功,然后再次点击按钮,这不是本质上是一个空操作,因为没有文件被改变吗?因为我的 Xcode 再次重新编译了项目的很大一部分.即使当我构建然后立即点击播放按钮时,我也必须再次盯着构建过程.这是必要的,这是预期的行为吗?

I have an Xcode 4 workspace with several projects. Everything builds perfectly and works as expected, only Xcode recompiles files too often. If I hit the Build button, wait for the compilation to succeed and then hit the button again, shouldn’t that be essentialy a no-op, since no files have changed? Because my Xcode recompiles a big part of the project again. Even when I build and then immediately hit the Play button, I have to stare at the building process again. Is that neccessary, is it expected behaviour?

推荐答案

您是否正在执行在编译前更改文件的自定义脚本?这将导致 xcode 将重新编译所有接触过的文件,即使可能没有任何改变.您可以通过在运行脚本构建阶段启用复选标记来关闭此功能.这将仅在安装应用程序时执行脚本.

Are you executing custom scripts that change files before compilation? This will result that xcode will recompile all touched files even though maybe nothing changed. You can turn this off by enabling a checkmark in the run script build phase. This will execute the script only on installation of the app.

下图显示了实际的复选标记.

The image below shows the actual checkmark.

这篇关于为什么 Xcode 不断地重新编译我未受影响的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆