10.6: http://developer.apple.com/rss/com.apple.adc.documentation.AppleSnowLeopard.atom
10.7: http://developer.apple.com/rss/com.apple.adc.documentation.AppleLion.atom
iOS 5: http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone5_0.atom
legacy: 遺產(chǎn),祖遺留下來(lái)之物
Apple publish the Xcode docset through RSS feeds, so Xcode can check and download them easily. If you are interested in retrieving the docsets directly, here is the catch:
Xcode 4 的幫助文檔都是在線的,如果網(wǎng)速慢,查看起來(lái)會(huì)非常不方便,我們可以使用下載工具把文檔下載到本地硬盤,這樣搜索查看時(shí)就方便多了
安裝下載到的atom:
0. 找到幫助文檔的 Feed 地址
在Xcode中 Cmd + , 顯示設(shè)置窗口,然后定位到 Downloads->Documentation
點(diǎn)擊要使用的文檔,如 Mac OS X 10.7 Core Library,再點(diǎn)擊左下角的小箭頭圖標(biāo),在顯示出來(lái)的詳細(xì)信息中有 Feed 地址
1. 解壓下載到的 xar 得到 docset
sudo xar -xf 文檔文件.xar
2. 設(shè)置 docset 文件的所有者為 devdocs
sudo chown -R -P devdocs 文檔文件.docset
3. 復(fù)制 devdocs 到
/Developer/Documentation/DocSets/