XcodesOrg / XcodesApp

The easiest way to install and switch between multiple versions of Xcode - with a mouse click.
MIT License
7.04k stars 309 forks source link

Unable to install Xcode #608

Open andrewmarmion opened 2 months ago

andrewmarmion commented 2 months ago

Describe the bug When trying to install a version of Xcode, Xcodes fails in the extracting process with the following error message:

The operation couldn’t be completed. (ProcessExecutionError(process: <NSConcreteTask: 0x600001c92120>, standardOutput: "xip: signing certificate was \"Software Update\" (validation not attempted)\n", standardError: "xip: error: The archive “Xcode-16.1.0-Beta+16B5001e.xip” failed to be moved to the final destination due to the error: The operation couldn’t be completed. Operation not permitted.\n"))

I am able to download the same version of Xcode from the developer.apple.com without issue.

To Reproduce Try to install Xcode version from list in panel.

Expected behavior I would expect that the extraction would happen without issue and the the version of Xcode would be installed.

Screenshots

CleanShot 2024-09-09 at 10 04 38

Version

darrenallen7 commented 2 months ago

+1

MattKiazyk commented 2 months ago

Just curious if you have Xcodes running from /Applications?

A guess would be its saying it doesn't have permission to move the app after it's done unxipping.

andrewmarmion commented 2 months ago

@MattKiazyk Xcodes is running from /Applications.

It was working fine until 2 days ago when I went to download the latest betas to do some testing. I tried uninstalling Xcodes and reinstalling but it didn't make a difference. I got the same error.

A guess would be its saying it doesn't have permission to move the app after it's done unxipping.

That was my thought too.

MattKiazyk commented 2 months ago

Workaround would be to grab the .xip from the ~/Users/xxx/Library/Application support/com.robotsandpencils.xcodesapp directory and manually unxip and move it.

If it worked 2 days ago and not now hopefully nothing major has changed. I did 16.0 RC with no problems on Monday. I also did 16.1 beta this morning without issue.

andrewmarmion commented 2 months ago

Sorry I should clarify, that I only tried to use it again 2 days ago. Last time I had used it to install a version of Xcode would have been back in May when 15.4 came out. I had no issues then. When I tried to use it two days ago it obviously didn't work.

I'll use the work around for now.

zellyk commented 1 month ago

I am stuck at unarchiving as well for xcode 16.0

andrewmarmion commented 1 month ago

What is strange is that it worked on Monday, after I updated to macOS Sequoia and downloaded the final version of Xcode 16. However, it failed when trying to extract the 16.1 Beta 2.

I followed @MattKiazyk suggestion and went to grab the .xip manually from the folder it was downloaded to. Rather than extracting it, I decided to delete the downloaded xips in the folder and try it again from Xcodes. This time it worked and extracted it copying it without issue to the Applications folder.

TomQDRS commented 1 month ago

I just encountered this issue too. Since this seems to be a permission issue, I looked through my mac settings for a quick solution. I was able to work around this issue by going to Settings -> Privacy & Security -> Full Disk Access and adding Xcodes there. I am on MacOS Sonoma 14.7.

PorterHoskins commented 1 month ago

+1