15
votes

I've read some posts like this about doing this using older versions of the iOS SDK.

I can't connect to the internet from the Mac at my home, so i need the link to download the iOS SDK 7 docset and install it offline. I use a similar approach in the previous one 6.1 and it works like charm.

Is there any link or way to follow for getting the offline documentation and install it offline in my xCode 5 ??

EDIT: I need the direct link to download it since i have not osx in the machine that have the internet conection.

3

3 Answers

21
votes

I fired up Wireshark to inspect where Xcode itself downloads the documentation when doing it the normal/online way via the Downloads-tab in Xcode's Preferences: enter image description here

So here are the various download links:

Just open the image and execute the installer: enter image description here

7
votes

I've had a similar problem very recently with downloading docsets for Xcode 5.1.1.

My job took me to a very remote place, where we use a 256kbps satellite link as our only Internet connection, and that is mainly used to transfer a substantial amount of scientific data back to our HQ, as well as for the VoIP phones. There's very little bandwidth left for any other purpose and even that is shared between thirteen people.

I can't, therefore, use the normal download mechanism from Xcode, as it would likely time out and/or fill the link completely.

What I can do instead, is to use rsync with bandwidth limit to pull files from a server at home. To do that, I had to find the URLs for the docsets.

It turns out, Xcode uses an XML file available here, which contains a list of all docsets, along with the xcode versions that those docsets are available for. This seems to be refreshed every 24 hours. You can then parse (or manually look through) this file to grab your URLs as needed and download them with wget, curl or any other client. No need for Wireshark!

1
votes

I would grab Dash (http://kapeli.com/dash). It downloads any docset you get your hands on as well as iOS SDKs and makes them available anytime. Dash is not free, but if you don't pay for it, there is a small and unobtrusive ad. I think after using it for a while, you won't mind paying the small fee to support its ongoing development.