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.)