停止 xcode 索引 [英] Stopping xcode from indexing

查看:77
本文介绍了停止 xcode 索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 xCode 4.5.2,并且注意到如果您正在编制索引,您需要停止一切并让它完成它的工作,否则您会陷入困境.这已经成为一个问题,因为项目很大,而且索引需要很长时间才能完成,并且会不断地进行.一个例子是它索引了整个项目,在我对这个项目做了一点工作之后,它开始重新索引几乎 75% 的项目.我检查了源代码管理,在我处理它的时间内没有对项目进行任何更改.

I've been working with xCode 4.5.2, and have noticed that if you are indexing, you need to stop everything and let it do it's job, or else you'll get bogged down. It's become a bit of a problem, as the project is a large one, and indexing has been taking a long time to do, and it will do it constantly. One instance was it indexed the entire project, after I worked a little bit on the project it started to re-index almost 75% of the project. I checked with source control, and there had been no changes to the project in the amount of time I worked on it.

有什么办法可以完全停止索引,或者减少索引的次数?关闭索引有什么缺点吗?我在之前的问题中读到过,据说它会阻止自动完成和搜索项目.

Is there any way to stop the indexing entirely, or reduce the amount of times it indexes? Are there any downsides of turning off indexing? I had read in previous questions where it was said it prevented auto-complete and searching through the project.

推荐答案

只需在终端中运行此命令即可关闭索引:

Just run this command in the terminal to turn off Indexing:

defaults write com.apple.dt.XCode IDEIndexDisable 1

要重新打开它,请运行:

To turn it back on, run this:

defaults write com.apple.dt.XCode IDEIndexDisable 0

(注意:显然您需要删除此密钥才能使更改生效,但是,我只是使用了上面的命令并且效果很好.因此,如果执行上述操作不起作用,请尝试删除该密钥)

(Note: Apparently you need to delete this key in order for the change to take affect, however, I used simply the above command and it worked fine. So if doing the above doesn't work, try deleting the key)

编辑

抱歉,漏掉了一部分问题.是的,它会使搜索速度变慢.也许自动完成会被禁用.索引使 Xcode 能够快速记住您所做的事情.关闭它会使使用起来稍微困难一些,但会缩短加载时间.

Sorry, missed part of the question. Yes, it will make it so searching does not work as fast. Perhaps auto-complete will get disabled. Indexing is what allows Xcode to quickly remember what you have done. Turning it off will make it slightly harder to work with, but it improves loading time.

这篇关于停止 xcode 索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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