xcode 下载用于离线安装的 iOS SDK 7.0 文档
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19717625/
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
Download iOS SDK 7.0 documentation for offline install
提问by Javier Cadiz
I've read some posts like thisabout doing this using older versions of the iOS SDK.
我读过一些职位,像这样关于这样使用老版本的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.1and it works like charm.
我无法从家里的 Mac 连接到互联网,因此我需要链接来下载 iOS SDK 7 文档集并离线安装。我在之前的6.1 中使用了类似的方法,它的作用就像魅力一样。
Is there any link or way to follow for getting the offline documentation and install it offline in my xCode 5 ??
是否有任何链接或方法可以获取离线文档并将其离线安装在我的 xCode 5 中?
EDIT:I need the direct link to download it since i have not osx in the machine that have the internet conection.
编辑:我需要直接链接来下载它,因为我在有互联网连接的机器上没有 osx。
回答by Mobiletainment
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:
我启动了 Wireshark 以检查 Xcode 本身在通过 Xcode 首选项中的下载选项卡以正常/在线方式下载文档的位置:
So here are the various download links:
所以这里是各种下载链接:
Just open the image and execute the installer:
只需打开图像并执行安装程序:
回答by mike
I've had a similar problem very recently with downloading docsets for Xcode 5.1.1.
我最近在下载 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.
我的工作把我带到了一个非常偏远的地方,在那里我们使用 256kbps 卫星链接作为我们唯一的互联网连接,这主要用于将大量科学数据传输回我们的总部,以及 VoIP 电话。剩下的带宽很少用于任何其他目的,即使是在 13 人之间共享。
I can't, therefore, use the normal download mechanism from Xcode, as it would likely time out and/or fill the link completely.
因此,我不能使用 Xcode 的正常下载机制,因为它可能会超时和/或完全填充链接。
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.
我可以做的是使用具有带宽限制的 rsync 从家里的服务器中提取文件。为此,我必须找到文档集的 URL。
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!
事实证明,Xcode 使用了一个可用的 XML 文件here,其中包含所有文档集的列表,以及这些文档集可用的 xcode 版本。这似乎每 24 小时刷新一次。然后,您可以解析(或手动查看)此文件以根据需要获取您的 URL,并使用 wget、curl 或任何其他客户端下载它们。不需要Wireshark!
回答by Jim Rutherford
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.
我会抓住 Dash ( http://kapeli.com/dash)。它会下载您获得的任何文档集以及 iOS SDK,并使其随时可用。Dash 不是免费的,但如果你不付费,就会有一个小而不起眼的广告。我认为在使用它一段时间后,您不会介意支付少量费用来支持其持续发展。