问题描述
我禁用了索引以获得速度,它有效!现在我将RAM从4gb升级到8gb并想再试一次。
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?
推荐答案
默认值是每个域的名称值存储。这里的设置域是 com.apple.dt.XCode
。设置的名称是 IDEIndexDisable
。您将其设置为 1 。要撤消此操作,您需要删除该设置,而不是添加另一个具有不同名称的设置。
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
这篇关于如何在Xcode中启用索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!