如何在 Xcode 中启用索引? [英] How to enable indexing in Xcode?

查看:25
本文介绍了如何在 Xcode 中启用索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我禁用了索引以恢复速度,它奏效了!现在我将 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

(请注意,带有大写 C 的 com.apple.dt.XCode 是过去的错误,可能是您的错误,这对于 Mac OS X 等默认使用的不区分大小写的文件系统并不重要.)

(Note that com.apple.dt.XCode with the capital C is a past mistake, likely yours, that shouldn't really matter on case insensitive file systems like Mac OS X uses by default.)

这篇关于如何在 Xcode 中启用索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆