如何在 XCode 4 中删除文档“iOs 4.2 Library”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5860385/
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
How delete Documentation "iOs 4.2 Library" in XCode 4
提问by Rodrigo
HI. My XCode 4.0.1 have a lot of documentation downloaded. I have
你好。我的 XCode 4.0.1 下载了很多文档。我有
- iOS 4.2 Library
- iOS 4.3 Library
- Mac OS X 10.6 Core Library
- Mac OS X Legacy Library (uninstalled)
- Xcode 4.0 Developer Library
- iOS 4.2 库
- iOS 4.3 库
- Mac OS X 10.6 核心库
- Mac OS X Legacy Library(已卸载)
- Xcode 4.0 开发者库
I want to uninstall 4.2 Library because it is old. But the "minus" sign is disable and "Delete Documentation Feed" is disable too. So, there are no other way to delete it.
我想卸载 4.2 库,因为它很旧。但是“减号”是禁用的,“删除文档提要”也是禁用的。因此,没有其他方法可以删除它。
Someone know how to do this?
有人知道怎么做吗?
回答by amattn
Xcode 4:
代码 4:
- Open Xcode Preferences
- Click to highlight the docset you want to delete
- Click the rectangle with a filled triangle icon. It's next to the + and - icons at the bottom of the list of docsets
- Click the hyperlink to show the docset in the finder.
- Move or delete the docset. You will likely need administrator privileges for this.
- 打开 Xcode 首选项
- 单击以突出显示要删除的文档集
- 单击带有实心三角形图标的矩形。它位于文档集列表底部的 + 和 - 图标旁边
- 单击超链接以在查找器中显示文档集。
- 移动或删除文档集。为此,您可能需要管理员权限。
I recommend you move them to a temporary location. Especially for older documentation, you may have to install old versions of Xcode to get them back.
我建议您将它们移动到临时位置。特别是对于较旧的文档,您可能必须安装旧版本的 Xcode 才能恢复它们。
UPDATE for Xcode 5:
Xcode 5 更新:
- Navigate to ~/Library/Developer/Shared/Documentation/DocSets/
- Move or delete the docset. You may need administrator privileges for this.
- 导航到 ~/Library/Developer/Shared/Documentation/DocSets/
- 移动或删除文档集。为此,您可能需要管理员权限。
回答by sgosha
Go to XCode Settings, Documentation tab. Select required documentation set and press arrow up button in the bottom to reveal documentation info pane. There you'll see a link to docset location (was /Library/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset on my Mac). Simply delete docset from the file system and restart XCode.
转到 XCode 设置,文档选项卡。选择所需的文档集,然后按底部的向上箭头按钮以显示文档信息窗格。在那里你会看到一个指向 docset 位置的链接(在我的 Mac 上是 /Library/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset)。只需从文件系统中删除 docset 并重新启动 XCode。