For reasons unknown to me, Xcode fails to download the documentation sets from the server.
Is there a way to download these documentation sets manually from a URL and then have Xcode's Core Reference Library unpack them?
EDIT:
Found what I was looking for:
http://learning2code.blogspot.com/2008/05/download-xcode-docsets-to-your-hard.html
For Xcode 7.0 and maybe newer versions you should follow these steps to download and install documentation sets manually:
For example the following:
<!-- 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 -->
Download the file from source
string. In our example: https://devimages.apple.com.edgekey.net/docsets/20150916/031-34987-A.dmg
Rename the downloaded file using following structure:
"identifier string" + "-" + "version string" + ".dmg"
In our example:com.apple.adc.documentation.iOS-90.9.dmg
~/Library/Caches/com.apple.dt.Xcode/Downloads/
If there is no Download
folder, create it.
I suggest you to remove all files with .dvtdownloadableindex
extension (if any exists).
InstallPrefix
string folder and remove existence related docsets (if any exists).In our example the folder is $(HOME)/Library/Developer/Shared/Documentation/DocSets
which refers to ~/Library/Developer/Shared/Documentation/DocSets.
Then remove the com.apple.adc.documentation.iOS.docset
file from there.
(In some cases, $(DEVELOPER)
refers to /Applications/Xcode.app/Contents/Developer
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With