Documentation 如何通过dmg文件安装Xcode文档
由于我的网络原因,我无法关闭Xcode中的文档,因此我从中关闭并安装了它们。Documentation 如何通过dmg文件安装Xcode文档,documentation,Documentation,由于我的网络原因,我无法关闭Xcode中的文档,因此我从中关闭并安装了它们。 但它不起作用。我将文件com.apple.adc.documentation.OSX.docset移动到~/Library/Developer/Shared/documentation,但它仍然起作用。我找到了安装它们的方法。它在Xcode 7.0中运行良好: 首先,您应该在以下链接中找到合适的项目: 例如: <!-- START iOS 9 doc set --> <dict> <
但它不起作用。我将文件com.apple.adc.documentation.OSX.docset移动到~/Library/Developer/Shared/documentation,但它仍然起作用。我找到了安装它们的方法。它在Xcode 7.0中运行良好:
<!-- START iOS 9 doc set -->
<dict>
<key>fileSize</key>
<integer>1065107366</integer>
<key>identifier</key>
<string>com.apple.adc.documentation.iOS</string>
<key>name</key>
<string>iOS 9.0 Documentation</string>
<key>source</key>
<string>https://devimages.apple.com.edgekey.net/docsets/20150916/031-34987-A.dmg</string>
<key>userInfo</key>
<dict>
<key>ActivationPredicate</key>
<string>$XCODE_VERSION >= '7.0' && $XCODE_VERSION < '7.1'</string>
<key>Category</key>
<string>Documentation</string>
<key>IconType</key>
<string>IDEDownloadablesTypeDocSet</string>
<key>InstallPrefix</key>
<string>$(HOME)/Library/Developer/Shared/Documentation/DocSets</string>
<key>InstalledIfAllReceiptsArePresentOrNewer</key>
<dict>
<key>com.apple.pkg.7.0.iOSDocset</key>
<string>10.9.0.0.1.1442278660</string>
</dict>
<key>RequiresADCAuthentication</key>
<false/>
<key>Summary</key>
<string>My description of content</string>
</dict>
<key>version</key>
<string>90.9</string>
</dict>
<!-- END iOS 9 doc set -->
文件大小
1065107366
标识符
com.apple.adc.documentation.iOS
名称
iOS 9.0文档
来源
https://devimages.apple.com.edgekey.net/docsets/20150916/031-34987-A.dmg
用户信息
激活谓词
$XCODE_版本='7.0'&&$XCODE_版本“7.1”
类别
文档
IconType
IDE可下载stypedocset
安装前缀
$(主页)/库/开发人员/共享/文档/文档集
InstalledFallReceiptsRepresentorPower
com.apple.pkg.7.0.iOSDocset
10.9.0.0.1.1442278660
需要身份验证
总结
我对内容的描述
版本
90.9
source
string下载文件。在我们的例子中:“标识符字符串”+“-“+”版本字符串“+”.dmg”
在我们的示例中:com.apple.adc.documentation.iOS-90.9.dmg
~/Library/Caches/com.apple.dt.Xcode/Downloads/
.dvtdownloadableindex
的所有文件(如果存在)
InstallPrefix
string文件夹并删除与存在相关的文档集(如果存在)$(HOME)/Library/Developer/Shared/Documentation/DocSets
,它指的是~/Library/Developer/Shared/Documentation/DocSets.
然后从那里删除com.apple.adc.Documentation.iOS.docset
文件
(在某些情况下,$(DEVELOPER)
指的是/Applications/Xcode.app/Contents/DEVELOPER
)
谢谢,做得很好!