如何在Xcode 4中禁用索引?

如何在Xcode 4中禁用索引?

问题描述:

不久前我将Xcode更新为版本4.这个新版本花了很多时间来索引项目(它非常大)。这就是我想禁用索引的原因。搜索Xcode帮助和互联网没有结果。

Not a long time ago I updated Xcode to version 4. This new version spent a lot of time on indexing the project (it's quite large). That's why I would like to disable indexing. Searching through Xcode help and internet gave no results.

提前谢谢你!

打开终端窗口并粘贴此命令:

Open a terminal window and paste this command:

默认写入com.apple.dt.XCode IDEIndexDisable 1

你会失去一些功能(自动完成,跳转到定义,一些助手将无法正常工作)。但是你将获得ram和cpu。

You'll lose some features (autocomplete, jump to definition, some of the assistants won't work right). But you'll gain back ram and cpu.

对于我的项目,Xcode从使用2 Gigs到几百MB。 (我非常需要编译;))

For my project Xcode went from using 2 Gigs to a few hundred MB. (which I sorely needed to compile with ;))