Search code examples
xcodexcode4xcode4.2

Xcode - Cannot disable indexing


I have been fighting this for a about a week now. I CANNOT get indexing to disable in Xcode. Has anyone else ever experienced this? The following command has zero effect:

defaults write com.apple.dt.XCode IDEIndexDisable 1

I relaunch Xcode after issuing this via terminal (as root) and when I re-open xcode, projects attempt to index. I have repaired permissions on the machine and upgraded to the latest xcode to no avail. Its driving me crazy as I am taking a huge hit in performance due to indexing on a very large project. Any help would be greatly appreciated.


Solution

  • I actually figured it out finally. The IDEIndexDisable boolean was missing from com.apple.dt.XCode completely. Naturally the value couldn't be set from the command line with the value missing. I added the value manually by editing the plist file and adding the IDEIndexDisable boolean and setting it to yes. Finally, no more indexing!

    EDIT: In order to edit the plist file --

    Open the plist file in Xcode - its located at ~/Library/Preferences/com.apple.dt.Xcode.plist

    Find the IDEIndexDisable boolean and change it to yes

    In my case the boolean was actually missing and I had to add it.