Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't update Xcode, keep getting "“Symbols” couldn't be copied to “5.1 (9B176)”." error

Among the multiple bugs & crashes I'm seeing with XCode (100% reproducible GUI crashes on launch, xcodebuild crashes every time I try to have Homebrew build something, etc), the crowning one at the moment is that I can't update from 4.3.1 to the current 4.3.2, because the App Store's updater consistently fails with:


The application could not be downloaded.


“Symbols” couldn't be copied to ”5.1 (9B176)”.


[ Cancel ] [ Retry ]


Retrying does no good: the error message comes back immediately. And if you cancel, then the download — which otherwise appears to have finished, based on the progress bar in the App Store app — has to be retrieved again from scratch.


Any clues what might be going on here, or what can be done to get it to download & install?


Thanks.

Mac Pro, Mac OS X (10.7.3)

Posted on Apr 11, 2012 6:27 AM

Reply
Question marked as Best reply

Posted on Apr 11, 2012 6:47 AM

Relevant bit from

/Library/Logs/install.log
:


Apr 11 09:36:25 promachos installd[49219]: PackageKit: ----- Begin install ----- Apr 11 09:36:25 promachos installd[49219]: PackageKit: request=PKInstallRequest <1 packages, destination=/>Apr 11 09:36:25 promachos installd[49219]: PackageKit: packages=(          "PKLeopardPackage "      ) Apr 11 09:36:44 promachos installd[49219]: PackageKit: Extracting file://localhost/var/folders/cy/y4q_bfl10fj_q3rhdsdq6blr0000gt/C/com.apple.appstore/497799835/mzm.ojdssduz.pkg#XcodeMAS_iOSSDK_5_1.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0) Apr 11 09:36:49 promachos installd[49219]: PackageKit: Applying atomic-update from bundle at Applications/Xcode.app Apr 11 09:37:54 promachos installd[49219]: Cannot make symlink /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols: Invalid argument Apr 11 09:38:11 promachos installd[49219]: PackageKit: Install Failed: Error Domain=NSCocoaErrorDomain Code=512 "“Symbols” couldn’t be copied to “5.1 (9B176)”." UserInfo=0x7fbb6a131870 {NSUserStringVariant=(          Copy      ), NSDestinationFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols, NSFilePath=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols, NSUnderlyingError=0x7fbb6a12b420 "The operation couldn’t be completed. Invalid argument"} {          NSDestinationFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols";          NSFilePath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols";          NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=22 \"The operation couldn\U2019t be completed. Invalid argument\"";          NSUserStringVariant =     (              Copy          );      }


Hmm. So the iOS / iPhone 5.1 SDK has some kind of problem?


$ pwd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) $ ls -la total 11248 drwxr-xr-x  5 root  wheel      170 Mar 18 10:02 . drwxr-xr-x  7 root  wheel      238 Mar 18 10:02 .. -rw-r--r--  1 root  wheel  5744718 Feb 15 06:39 DeveloperDiskImage.dmg -rw-r--r--  1 root  wheel      128 Mar 18 09:59 DeveloperDiskImage.dmg.signature lrwxr-xr-x  1 root  wheel       36 Mar 18 09:59 Symbols -> $


A symlink that doesn't point to anything? That doesn't seem right…


Trying again now to see if that really fixed it.


Message was edited by cdevers to add more information.

3 replies
Question marked as Best reply

Apr 11, 2012 6:47 AM in response to cdevers

Relevant bit from

/Library/Logs/install.log
:


Apr 11 09:36:25 promachos installd[49219]: PackageKit: ----- Begin install ----- Apr 11 09:36:25 promachos installd[49219]: PackageKit: request=PKInstallRequest <1 packages, destination=/>Apr 11 09:36:25 promachos installd[49219]: PackageKit: packages=(          "PKLeopardPackage "      ) Apr 11 09:36:44 promachos installd[49219]: PackageKit: Extracting file://localhost/var/folders/cy/y4q_bfl10fj_q3rhdsdq6blr0000gt/C/com.apple.appstore/497799835/mzm.ojdssduz.pkg#XcodeMAS_iOSSDK_5_1.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0) Apr 11 09:36:49 promachos installd[49219]: PackageKit: Applying atomic-update from bundle at Applications/Xcode.app Apr 11 09:37:54 promachos installd[49219]: Cannot make symlink /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols: Invalid argument Apr 11 09:38:11 promachos installd[49219]: PackageKit: Install Failed: Error Domain=NSCocoaErrorDomain Code=512 "“Symbols” couldn’t be copied to “5.1 (9B176)”." UserInfo=0x7fbb6a131870 {NSUserStringVariant=(          Copy      ), NSDestinationFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols, NSFilePath=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols, NSUnderlyingError=0x7fbb6a12b420 "The operation couldn’t be completed. Invalid argument"} {          NSDestinationFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols";          NSFilePath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols";          NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=22 \"The operation couldn\U2019t be completed. Invalid argument\"";          NSUserStringVariant =     (              Copy          );      }


Hmm. So the iOS / iPhone 5.1 SDK has some kind of problem?


$ pwd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) $ ls -la total 11248 drwxr-xr-x  5 root  wheel      170 Mar 18 10:02 . drwxr-xr-x  7 root  wheel      238 Mar 18 10:02 .. -rw-r--r--  1 root  wheel  5744718 Feb 15 06:39 DeveloperDiskImage.dmg -rw-r--r--  1 root  wheel      128 Mar 18 09:59 DeveloperDiskImage.dmg.signature lrwxr-xr-x  1 root  wheel       36 Mar 18 09:59 Symbols -> $


A symlink that doesn't point to anything? That doesn't seem right…


Trying again now to see if that really fixed it.


Message was edited by cdevers to add more information.

Apr 11, 2012 7:02 AM in response to cdevers

Deleting the broken

Symbols
symlink in
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)
got me past the original problem, but now I'm getting:

The application could not be downloaded.


“Resources” couldn't be copied to ”DTDeviceKit.framework”.


This time, the

install.log
error is:


Apr 11 09:55:00 promachos installd[49219]: Cannot make symlink /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Resources: Invalid argument Apr 11 09:55:38 promachos installd[49219]: PackageKit: Install Failed: Error Domain=NSCocoaErrorDomain Code=512 "“Resources” couldn’t be copied to “DTDeviceKit.framework”." UserInfo=0x7fbb824731d0 {NSUserStringVariant=(          Copy      ), NSDestinationFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Resources, NSFilePath=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Resources, NSUnderlyingError=0x7fbb82473250 "The operation couldn’t be completed. Invalid argument"} {          NSDestinationFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Resources";          NSFilePath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Resources";          NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=22 \"The operation couldn\U2019t be completed. Invalid argument\"";          NSUserStringVariant =     (              Copy          );      }


And once again, we have another broken symlink:


$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Resources/ $ ls -la total 32 drwxr-xr-x  5 root  wheel  170 Mar 18 10:02 . drwxr-xr-x  7 root  wheel  238 Mar  7 16:07 .. lrwxr-xr-x  1 root  wheel   28 Mar 18 09:59 DTDeviceKit -> Versions/Current/DTDeviceKit lrwxr-xr-x  1 root  wheel   26 Mar 18 09:59 Resources -> drwxr-xr-x  4 root  wheel  136 Mar 18 10:02 Versions


Lather, rinse, repeat.

Apr 11, 2012 7:16 AM in response to cdevers

Since this issue of broken symlinks scattered through the Xcode folder hierarchy is obviously going to keep happening, I brute-forced the problem:


$ find /Applications/Xcode.app -type l -ls | more | grep ' -> *$' 8267528       16 lrwxr-xr-x    1 root             wheel                  26 Mar 18 10:02 /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Resources -> 8267623       16 lrwxr-xr-x    1 root             wheel                   1 Mar 18 10:02 /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/Current ->


These were removed by hand, and now the installer has finally been able to run to completion successfully.


If anyone knows a smarter way to prune broken symlinks, I'd love to hear it — and the Xcode beta team developers would probably like to know, too.

Can't update Xcode, keep getting "“Symbols” couldn't be copied to “5.1 (9B176)”." error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.