将所有 Xcode 设置恢复到原始状态 [英] Reverting all Xcode settings to their original state

查看:73
本文介绍了将所有 Xcode 设置恢复到原始状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我无法再开始搜索时,我的 Xcode 进入了非功能状态:一旦我按下 ⌘+F,Xcode 就会挂起旋转风车,并停止响应.一旦发生这种情况,我唯一的选择就是强制退出并重新启动.

I got my Xcode into a non-functional state when I can no longer start a search: once I press ⌘+F, Xcode hangs with a spinning pinwheel, and stops responding. Once this happens, my only option is to force quit and restart.

我尝试在工作区和项目目录中查找保存的设置,但我要删除的最近搜索选项似乎存储在其他地方.我知道我可以通过 UI 清除最近的搜索,但这需要打开搜索对话框,该对话框会挂起 Xcode.

I tried looking for the saved settings in the workspace and project directories, but the recent search options that I am looking to delete appear to be stored elsewhere. I know that I could clear recent searches through the UI, but that would require bringing up the search dialog, which hangs Xcode.

我想将 Xcode 重置为其原始状态.如何在不重新安装 Xcode 的情况下执行此操作?

I would like to reset Xcode to its original state. How do I do it without reinstalling Xcode?

推荐答案

这是官方推荐的增量 Xcode 5 首选项的方式,输入 Terminal.app:

This is the officially recommended way to delta Xcode 5's preferences, type in Terminal.app:

defaults delete com.apple.dt.Xcode

这应该会将 Xcode 恢复到首次启动时的状态.

That should restore Xcode to the state of its first launch.

(对于旧版本的 Xcode,命令是 defaults delete com.apple.Xcode,即中间没有 dt).

(for older versions of Xcode the command was defaults delete com.apple.Xcode, i.e. without the dt in the middle).

这篇关于将所有 Xcode 设置恢复到原始状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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