使用VMWare虚拟机安装的MAC OS X Snow Leopard 10.6.6升级为10.6.8(mac os x_lion 10.7.1 见问题三),成功安装XCODE4,运行后发现XCODE4下载了三个Library,并成功安装。但是每次运行时,一个叫MAC OS X 10.6 Core Library的东西每次都在下载,很占资源。经折腾后发现:
1、/资源库/Develpoer/Documentation/DocSets下找到三个文件:com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset,com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.docset ,com.apple.ADC_Reference_Library.DeveloperTools.docset,
这就是已经下载的文件。
2、分别查看属性,看是否是最新版本(Mac OS X 10.6 Core Library (v409.200.0)),如果不是从http://developer.apple.com/rss/com.apple.adc.documentation.AppleSnowLeopard.atom下载最新版本。
3、提升当前用户读写权限。
以上三步就能搞定,如果问题,继续补充讨论。
类似问题一:Xcode4出现“Internal error installing Mac OS X 10.6 Core Library”错误
解决办法是:
1、进入/Develpoer/Documentation/DocSets删除旧的com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset
2、手动下载http://devimages.apple.com/docsets/20110621/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.xar
$ curl -C -O http://devimages.apple.com/docsets/20110621/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.xar
解压到/Develpoer/Documentation/DocSets目录下
$ cd /Develpoer/Documentation/DocSets
$ xar -x -f com.apple.adc.documentation.AppleSnowLeopard.CoreReference.xar
3、提升访问权限,不然会重新下载并安装失败。
$ $ sudo chown -R -P _devdocs /Developer/Documentation/DocSets/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset
类似问题二:Xcode4出现“Internal error installing IOS 4.3 Library”错误
解决办法:
iOS 4.3 Library (v. 38.103)
API reference and conceptual documentation for iOS 4.3.
Copyright © 2011 Apple Inc. All rights reserved.
Feed: http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4_3.atom
Web Root URL:
Identifier: com.apple.adc.documentation.AppleiOS4_3.iOSLibrary
Installed Location: /Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.docset
IOS 4.3 Library 的安装目录是:
/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.docset
把iPhone的文档解压到/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/下。
解压缩方法:
sudo xar -xf com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.Xcode4.38.55.xarsudo chown -R -P _devdocs com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.docsetsudo chmod 775 com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.docset执行命令的时候注意把xcode关掉.或者执行完毕重启xcode4类似问题三:
解决办法:
Mac OS X 10.7 Core Library (v. 410.26)
Copyright © 2011 Apple Inc. All rights reserved.
Feed: http://developer.apple.com/rss/com.apple.adc.documentation.AppleLion.atom
Web Root URL: https://developer.apple.com/library/etc/redirect/xcode/mac/548/
Identifier: com.apple.adc.documentation.AppleLion.CoreReference
Installed Location: /Developer/Documentation/DocSets/com.apple.adc.documentation.AppleLion.CoreReference.docset
根据得到的版本号和feed地址,使用safari或者firefox打开页面选择最新的版本下载,解压缩到安装目录,如图中所示
然后要修改解压出来的docset所有者信息和文件属性
sudo chown -R -P _devdocs:wheel com.apple.adc.documentation.AppleLion.CoreReference.docset
sudo chmod 775 com.apple.adc.documentation.AppleLion.CoreReference.docset
sudo chown -R -P _devdocs:wheel com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.docset
sudo chmod 775 com.apple.adc.documentation.AppleiOS4_3.iOSLibrary.docset
然后重新启动Xcode,就能查看文档了
转自:http://hi.baidu.com/mrool/item/f1cb8de81aa7e60d65db00d0