refs:
http://coastline.freepgs.com/archives/category/%E9%BB%91%E8%8B%B9%E6%9E%9C
之前安装xcode6时遇到的问题参考的文章,但是还是有些其他问题,没解决,记录下。
黑苹果10.8.2上安装XCode 4.5.2,首次运行提示安装Device Support,点击安装后提示安装失败。查看日志:
Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: @(#)PROGRAM:Install PROJECT:Install-729 Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: @(#)PROGRAM:Installer PROJECT:Installer-614 Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Hardware: MacPro3,1 @ 3.29 GHz (x 4), 4096 MB RAM Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Running OS Build: Mac OS X 10.8.2 (12C60) Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: TMPDIR=/var/folders/_1/rlr_pp751p199_xj4_z4mrzr0000gn/T/ Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: SHELL=/bin/bash Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: HOME=/Users/user-mac Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: USER=user-mac Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: LOGNAME=user-mac Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: SSH_AUTH_SOCK=/tmp/launch-VkAltq/Listeners Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: Apple_Ubiquity_Message=/tmp/launch-MOsbRT/Apple_Ubiquity_Message Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: Apple_PubSub_Socket_Render=/tmp/launch-LEw4Qu/Render Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: COMMAND_MODE=unix2003 Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Env: __CF_USER_TEXT_ENCODING=0x1F5:25:52 Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: MobileDevice Installation Log Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Opened from: /Users/user-mac/Desktop/MobileDevice.pkg Nov 15 09:33:53 usertekiMac-Pro.local Installer[15264]: Referenced component packages (1) trustLevel=501 Nov 15 09:33:54 usertekiMac-Pro.local Installer[15264]: InstallerStatusNotifications plugin loaded Nov 15 09:34:01 usertekiMac-Pro.local runner[15269]: Administrator authorization granted. Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: ================================================================================ Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: User picked Standard Install Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Choices selected for installation: Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: 安装: “MobileDevice” Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: MobileDevice.pkg : com.apple.pkg.MobileDevice : 4.0.0.0.1.1217269835 Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: ================================================================================ Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: It took 0.00 seconds to summarize the package selections. Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: -[IFPKGDerivedDocument sortedPackageLocations]: result = ( “file://localhost” ) Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/user-mac/Desktop/MobileDevice.pkg Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Set authorization level to root for session Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Will use PK session Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Starting installation: Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Configuring volume “Mac” Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Preparing disk for local booted install. Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Free space on “Mac”: 93.19 GB (93194678272 bytes). Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Create temporary directory “/var/folders/_1/rlr_pp751p199_xj4_z4mrzr0000gn/T//Install.15264zw2pK2″ Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: IFPKInstallElement (1 packages) Nov 15 09:34:01 usertekiMac-Pro.local Installer[15264]: Using authorization level of root for IFPKInstallElement Nov 15 09:34:01 usertekiMac-Pro.local installd[15210]: PackageKit: —– Begin install —– Nov 15 09:34:01 usertekiMac-Pro.local installd[15210]: PackageKit: request=PKInstallRequest <1 packages, destination=/> Nov 15 09:34:01 usertekiMac-Pro.local installd[15210]: PackageKit: packages=( "PKLeopardPackage " ) Nov 15 09:34:01 usertekiMac-Pro.local installd[15210]: PackageKit: Extracting file://localhost/Users/user-mac/Desktop/MobileDevice.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root, uid=0) Nov 15 09:34:02 usertekiMac-Pro.local installd[15210]: PackageKit: update_dyld_shared_cache -overlay /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root Nov 15 09:34:04 usertekiMac-Pro.local installd[15210]: PackageKit: prevent user idle system sleep Nov 15 09:34:04 usertekiMac-Pro.local installd[15210]: PackageKit: suspending backupd Nov 15 09:34:04 usertekiMac-Pro.local installd[15210]: PackageKit: Executing script “preinstall” in /private/tmp/PKInstallSandbox.kgbQZ0/Scripts/com.apple.pkg.MobileDevice.rbKmXJ Nov 15 09:34:04 usertekiMac-Pro.local install_monitor[15279]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr Nov 15 09:34:04 usertekiMac-Pro.local _securityagent[15282]: Running Install Scripts . . . Nov 15 09:34:04 usertekiMac-Pro.local _securityagent[15284]: Begin script: usbmuxdpre Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: preinstall: launchctl: Error unloading: com.apple.usbmuxd Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: preinstall: (kernel) Kext com.apple.driver.AppleMobileDevice not found for unload request. Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: preinstall: Failed to unload com.apple.driver.AppleMobileDevice – (libkern/kext) not found. Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: preinstall: (kernel) Kext com.apple.driver.AppleUSBEthernetHost not found for unload request. Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: preinstall: Failed to unload com.apple.driver.AppleUSBEthernetHost – (libkern/kext) not found. Nov 15 09:34:05 usertekiMac-Pro.local _securityagent[15290]: End script: usbmuxdpre Nov 15 09:34:05 usertekiMac-Pro.local _securityagent[15291]: 1 Install Scripts run. Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root (1 items) to / Nov 15 09:34:05 usertekiMac-Pro.local shove[15292]: [source=file] failed _RelinkFile(/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/System/Library/Extensions/AppleUSBEthernetHost.kext/Contents/_CodeSignature/CodeDirectory, /System/Library/Extensions/AppleUSBEthernetHost.kext/Contents/_CodeSignature/CodeDirectory): Operation not permitted Nov 15 09:34:05 usertekiMac-Pro.local shove[15292]: srcPath = /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/System/Library/Extensions/AppleUSBEthernetHost.kext/Contents/_CodeSignature/CodeDirectory NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=526806 NSFileExtensionHidden=0 NSFileSystemNumber=16777219 NSFileSize=166 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2012-08-10 22:02:39 +0000 NSFilePosixPermissions=420 NSFileHFSCreatorCode=0 NSFileType=NSFileTypeRegular NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 NSFileModificationDate=2012-08-10 22:02:39 +0000 Nov 15 09:34:05 usertekiMac-Pro.local shove[15292]: dstPath = /System/Library/Extensions/AppleUSBEthernetHost.kext/Contents/_CodeSignature/CodeDirectory NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=21273 NSFileExtensionHidden=0 NSFileSystemNumber=16777219 NSFileSize=166 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2012-04-05 22:33:06 +0000 NSFilePosixPermissions=493 NSFileHFSCreatorCode=0 NSFileType=NSFileTypeRegular NSFileAppendOnly=1 NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 NSFileModificationDate=2012-04-05 22:33:06 +0000 Nov 15 09:34:05 usertekiMac-Pro.local shove[15292]: dstParentPath = /System/Library/Extensions/AppleUSBEthernetHost.kext/Contents/_CodeSignature NSFileOwnerAccountID=0 NSFileSystemFileNumber=10443 NSFileExtensionHidden=0 NSFileSystemNumber=16777219 NSFileSize=204 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2012-06-18 19:42:35 +0000 NSFilePosixPermissions=493 NSFileType=NSFileTypeDirectory NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=6 NSFileModificationDate=2012-11-12 09:52:19 +0000 Nov 15 09:34:05 usertekiMac-Pro.local install_monitor[15279]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: PackageKit: releasing backupd Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: PackageKit: allow user idle system sleep Nov 15 09:34:05 usertekiMac-Pro.local installd[15210]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=120 “An unexpected error occurred while moving files to the final destination.” UserInfo=0x7f9db8c3d150 {NSUnderlyingError=0x7f9db8c53c00 “The operation couldn’t be completed. Operation not permitted”, NSLocalizedDescription=An unexpected error occurred while moving files to the final destination., arguments=( “-f”, “-s”, “/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root”, “/” )} { NSLocalizedDescription = “An unexpected error occurred while moving files to the final destination.”; NSUnderlyingError = “Error Domain=NSPOSIXErrorDomain Code=1 \”The operation couldn\U2019t be completed. Operation not permitted\”"; arguments = ( “-f”, “-s”, “/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root”, “/” ); } Nov 15 09:34:05 usertekiMac-Pro.local Installer[15264]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=120 “An unexpected error occurred while moving files to the final destination.” UserInfo=0x7fe16accbef0 {arguments=( “-f”, “-s”, “/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root”, “/” ), NSLocalizedDescription=An unexpected error occurred while moving files to the final destination., NSUnderlyingError=0x7fe16acf8b20 “未能完成该操作。操作不被允许”} Nov 15 09:34:06 usertekiMac-Pro.local Installer[15264]: Install failed: 安装器遇到了一个错误,导致安装失败。请联系软件制造商以获得帮助。 Nov 15 09:34:06 usertekiMac-Pro.local Installer[15264]: IFDInstallController 6AC500C0 state = 7 Nov 15 09:34:06 usertekiMac-Pro.local Installer[15264]: Displaying ‘Install Failed’ UI. Nov 15 09:34:06 usertekiMac-Pro.local Installer[15264]: 'Install Failed' UI displayed message:'安装器遇到了一个错误,导致安装失败。请联系软件制造商以获得帮助。'.
AppleUSBEthernetHost.kext应该就是罪魁祸首。不知道这个东东是不是黑苹果镜像作者自己添加的改版驱动,反正机器上没装USB网卡,无视之,直接改后缀为.kext.old,然后用KextUtility重建驱动缓存,重启,再安装MobileDevice.pkg,搞掂!