26

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.XCode IDEIndexEnable 1

Anyone know another command?

rowdyruckus
  • 892
  • 4
  • 12
  • 23

2 Answers2

44

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

Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
  • Yeah, it will. The other part of the answer concerns deleting the extra (and incorrect) key that was added by the asker. – Steven Fisher Jun 17 '13 at 16:12
  • Great @StevenFisher This save me lots of time :) Thanks – The iOSDev Jan 23 '17 at 07:08
  • didn't work for me with xcode 8.2.1 ... it still keeps indexing ... you're using Xcode, another answer is with XCode ... which one to use? – andrewz Mar 29 '17 at 15:34
  • Application identifier is case insensitive. You can use xcode, Xcode or XCode with the same result. – Jenea Vranceanu Oct 16 '21 at 19:03
  • Application identifiers are bundle identifiers, which means they ARE case sensitive, but it is not quite that simple because macOS is usually run on a case insensitive file system. Here, the bundle identifier is used primarily as a file name. If the bundle identifier is only ever handled at the file system level they'd be effectively case insensitive, but you should NOT rely on that. – Steven Fisher Oct 17 '21 at 16:57
4

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
A_B
  • 527
  • 4
  • 10