如何在Xcode 4中禁用索引? [英] How to disable indexing in Xcode 4?

查看:102
本文介绍了如何在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 ;))

这篇关于如何在Xcode 4中禁用索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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