Stopping xcode from indexing

Just run this command in the terminal to turn off Indexing:

defaults write com.apple.dt.XCode IDEIndexDisable 1

To turn it back on, run this:

defaults write com.apple.dt.XCode IDEIndexDisable 0

(Note: Apparently you need to delete this key in order for the change to take affect, however, I used simply the above command and it worked fine. So if doing the above doesn't work, try deleting the key)

EDIT

Sorry, missed part of the question. Yes, it will make it so searching does not work as fast. Perhaps auto-complete will get disabled. Indexing is what allows Xcode to quickly remember what you have done. Turning it off will make it slightly harder to work with, but it improves loading time.


Whatever is your reason to want this (mine is "An internal error occurred. Editing functionality may be limited") for Xcode 10.1:

defaults write com.apple.dt.Xcode IDEIndexDisable -bool true

Close Xcode, run this, open Xcode.