由于“检查依赖关系",在 XCode4 上构建速度很慢; [英] Build slow on XCode4 because of "check dependencies"

查看:22
本文介绍了由于“检查依赖关系",在 XCode4 上构建速度很慢;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当简单的项目,只有两个 XIB、5 个自定义类和 5 个框架(CFNetwork、QuartzCore、UIKit、Foundation、CoreGraphics).我之前使用过 XCode 3.x,最近更新到 XCode 4.在我使用之后,构建时间有时长达一分钟,通常约为 30 秒.我有一个带有 4GB 内存的 2.4 GHz MBP.

I have a fairly simple project with only two XIBs, 5 custom classes and 5 frameworks (CFNetwork, QuartzCore, UIKit, Foundation, CoreGraphics). I was using XCode 3.x before and recently updated to XCode 4. After I did, build times are sometimes up to a minute, typically about 30 seconds. I have an 2.4 GHz MBP with 4GB of memory.

查看日志导航器中的构建日志,我看到检查依赖项..."出现了很长时间,其他一切几乎立即发生.但是,单击此日志条目不会显示更多详细信息.我在哪里可以找到有关导致这种情况的原因的更多详细信息?

Looking at the build log in log navigator, I see "check dependencies..." come up for a long time, everything else happens nearly instantly. However clicking on this log entry doesn't reveal any more details. Where could I find more detailed info about what is causing this?

更新:

重新启动后,构建恢复到正常速度.可能是后台发生了一些事情导致速度变慢.

After rebooting, build returned to normal speed. There was possibly something happening in the background that was causing the slowdown.

推荐答案

您可以做的是关闭隐式依赖项.编辑速度较慢的构建方案并找到名为 Find Implicit Dependencies 的构建选项.您将在左上角看到方案.只需选择编辑方案",然后在该工作表出现后选择左侧的构建",如所附屏幕截图所示.然后单击确定"并再次尝试构建.(您可能还想为其他方案禁用它.)

What you can do is turn off implicit dependencies. Edit the build scheme that is slow and find the build option called Find Implicit Dependencies. You will see the schemes at the top-left. Just select Edit Scheme and once that sheet comes down select Build on the left as you see in the attached screenshot. Then click OK and try your build again. (You may want to disable it for other schemes as well.)

这篇关于由于“检查依赖关系",在 XCode4 上构建速度很慢;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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