Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
118 views
in Technique[技术] by (71.8m points)

How to enable indexing in 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...