开发者

How to enable indexing in Xcode?

I disabled indexing to get speed back, it worked! Now I upgraded my RAM from 4gb to 8gb and would like to give it a try again.

I used this code in terminal the 1st time:

defaults write com.apple.dt.XCode IDEIndexDisable 1

I tried this code and restarted, didn't work:

defaults write com.apple.dt.XCod开发者_StackOverflow中文版e IDEIndexEnable 1

Anyone know another command?


Defaults are a name-value store per domain. The setting's domain here is com.apple.dt.Xcode. The setting's name is IDEIndexDisable. You set this to 1. To undo this, you need to remove the setting, not add another one with a different name.

Based on the command you entered the first time, use this:

defaults delete com.apple.dt.Xcode IDEIndexDisable

While you're at it, you should delete the key you added as well:

defaults delete com.apple.dt.Xcode IDEIndexEnable

(Note that com.apple.dt.XCode with the capital C is a past mistake, likely yours, that shouldn't really matter on case insensitive file systems like Mac OS X uses by default.)


Instead of deleting the written setting, just toggling its value worked for me. Enter the following in a terminal window:

defaults write com.apple.dt.XCode IDEIndexDisable 0
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜