Xcode 在最近的项目列表中不显示最近的项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5180100/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:22:31  来源:igfitidea点击:

Xcode doesn't show recent projects in recent projects list

xcode

提问by Jo?o Josézinho

Every time I start Xcode it gives me a window where my recent projects supposedly should be. It would come in handy but unfortunately it's always empty.

每次我启动 Xcode 时,它​​都会给我一个窗口,我最近的项目应该在那里。它会派上用场,但不幸的是它总是空的。

Does it have anything to do with the location where I store my projects? I hope not.

它与我存储项目的位置有关吗?我希望不是。

Thanks for any help!

谢谢你的帮助!

回答by Mellson

I would think it's because you could have your recent items set to 0 in System Preferences -> Appearance.

我认为这是因为您可以在“系统偏好设置”->“外观”中将最近的项目设置为 0。

Update- If you are using Yosemite the correct path is System Preferences -> General -> Recent items (Thanks to @karim)

更新- 如果您使用的是 Yosemite,正确的路径是 System Preferences -> General -> 最近的项目(感谢@karim

EDIT: Based on comments : Then Reboot

编辑:基于评论: Then Reboot

回答by karim

@Mellson answer is correct. But there is no menu in OS X Yosemite, System Preferences -> Appearance. It should be, System Preferences -> General -> Recent items. Set e.g. 5 items.

@Mellson 答案是正确的。但是 OS X Yosemite 中没有菜单,系统偏好设置 -> 外观。应该是,系统偏好设置 -> 常规 -> 最近的项目。设置例如 5 个项目。

or in command line,

或在命令行中,

defaults write com.apple.Xcode NSRecentDocumentsLimit 5

However, to my experience the first one works more correctly.

但是,根据我的经验,第一个更正确。

enter image description here

在此处输入图片说明

回答by Ashok

Restartyour mac.

重新启动您的 Mac。

enter image description here

在此处输入图片说明

Earlier, I faced the same issue after I did Xcode 7.3 update. It showed me empty (Clear) Xcode File -> Open Recents menu.

早些时候,我在 Xcode 7.3 更新后遇到了同样的问题。它向我展示了空的(清除)Xcode 文件 -> 打开最近的菜单。