Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable indexing in Xcode?

Tags:

indexing

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

Anyone know another command?

like image 695
rowdyruckus Avatar asked Sep 07 '11 01:09

rowdyruckus


2 Answers

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

like image 156
Steven Fisher Avatar answered Sep 20 '22 00:09

Steven Fisher


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 
like image 25
A_B Avatar answered Sep 17 '22 00:09

A_B