0
我正在運行Lion的MacOS版本(10.7.1)並嘗試執行我的第一次安裝Xcode。Apple Xcode安裝失敗
它從App Store下載好了,然後我運行安裝程序,出現提示時輸入我的密碼。在結束之前的某個時刻,我收到了這條錯誤消息。 它抱怨的文件iPhoneSDK3_2.pkg沒有任何明顯的錯誤。
$ file iPhoneSDK3_2.pkg
iPhoneSDK3_2.pkg: xar archive - version 1
$ xar -tvf iPhoneSDK3_2.pkg
-rw-r--r-- root/wheel 355086 2011-04-04 19:49:27 Bom
-rw-r--r-- root/wheel 536 2011-04-04 19:53:42 PackageInfo
-rw-r--r-- root/wheel 292519053 2011-04-04 19:49:11 Payload
我可以從它
$ xar -tvf iPhoneSDK3_2.pkg --dump-toc=- |more
如何突破這個任何想法一個良好的XML TOC?
感謝,
`Sep 4 17:03:59 pvdls-iMac installd[680]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package 「iPhoneSDK3_2.pkg」." UserInfo=0x7fd3c1a5fab0 {NSLocalizedDescription=An error occurred while extracting files from the package 「iPhoneSDK3_2.pkg」., NSFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, NSURL=file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/iPhoneSDK3_2.pkg, PKInstallPackageIdentifier=com.apple.pkg.iPhoneSDK3_2, NSUnderlyingError=0x7fd3c0667b20 "The file couldn’t be opened because it isn’t in the correct format."} {
NSFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root";
NSLocalizedDescription = "An error occurred while extracting files from the package \U201ciPhoneSDK3_2.pkg\U201d.";
NSURL = "file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/iPhoneSDK3_2.pkg";
NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=259 \"The file couldn\U2019t be opened because it isn\U2019t in the correct format.\"";
PKInstallPackageIdentifier = "com.apple.pkg.iPhoneSDK3_2";
}`
嘗試重新下載它。 –
不幸的是,Xcode不是一個下載 - 你必須通過Mac App Store獲取它。而Mac App Store的印象是,自從我安裝了它之後,我不應該再有機會這麼做了。看,史蒂夫喬布斯退出了,蘋果全都下地獄。 –
嗯,有一個過程再次下載的東西。蘋果在http://support.apple.com/kb/HT2519上有說明 - 很多人似乎都遇到過這個問題。建議範圍從「再次下載」到「重新啓動系統」。大部分時間在經過2次或3次嘗試後纔會發生。 –