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
Found what I was looking for:
http://learning2code.blogspot.com/2008/05/download-xcode-docsets-to-your-hard.html
Augmenting the blog post mentioned in the accepted answer here, since its comments are closed:
There's a separate feed for each OS release. You can follow the Snow Leopard documentation at http://developer.apple.com/rss/com.apple.adc.documentation.AppleSnowLeopard.atom
One way to find these URLs is to click the little "i" info icon for each DocSet in Xcode's Preferences -> Documentation -> Documentation Sets.
If you are trying to download the iPhone docs you may be using an account that has no access to the docs.
For Xcode 7.0 and maybe newer versions you should follow these steps to download and install documentation sets manually:
For example the following:
Download the file from
source
string. In our example: https://devimages.apple.com.edgekey.net/docsets/20150916/031-34987-A.dmgRename 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 thecom.apple.adc.documentation.iOS.docset
file from there.(In some cases,
$(DEVELOPER)
refers to/Applications/Xcode.app/Contents/Developer
).