How to enable indexing in Xcode?
Solution 1:
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.)
Solution 2:
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