为了解决这个问题弄了两天。。。终于找到方法了。。。
把方法写出来给大家分享一下~~
打开Xcode,Xcode->Preferences->Documentation->选取你想要的文档右边的感叹号,复制feed url到浏览器中打开,下载相应文档。
然后:
- Move the .xar file to
/Developer/Documentation/DocSets/
and extract the file by runningxar -xf on the file from the same directory. (Run
cd /Developer/Documentation/DocSets` first). - You then need to change the permissions on the files by running
sudo chown -R -P _devdocs *.docset
- Launch Xcode and you should be good to go.