我禁用索引以获得速度,它有效!现在我将RAM从4gb升级到8gb,并想再试一次。
我第一次在终端使用了这段代码:
defaults write com.apple.dt.XCode IDEIndexDisable 1
我尝试了这段代码并重新启动,但没有工作:
defaults write com.apple.dt.XCode IDEIndexEnable 1
有人知道另一个命令吗?
答案 0 :(得分:38)
默认值是每个域的名称值存储。此处设置的域名为com.apple.dt.XCode
。设置的名称为IDEIndexDisable
。您将其设置为 1 。要撤消此操作,您需要删除该设置,而不是添加另一个具有不同名称的设置。
根据您第一次输入的命令,使用:
defaults delete com.apple.dt.Xcode IDEIndexDisable
当你在这里时,你应该删除你添加的密钥:
defaults delete com.apple.dt.Xcode IDEIndexEnable
答案 1 :(得分:1)
而不是删除书面设置,只是切换它的价值对我有用。 在终端窗口中输入以下内容:
defaults write com.apple.dt.XCode IDEIndexDisable 0