XcodesApp icon indicating copy to clipboard operation
XcodesApp copied to clipboard

Xcodes - unable to install Xcode on macOS Sequoia 15.2 and Sonoma 14.7.1

Open juloski opened this issue 11 months ago • 8 comments

Describe the bug

Unable to install Xcode

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

OK

To Reproduce Steps to reproduce the behavior: choose version of Xcode, for example 16

Expected behavior Attempt to install every version of Xcode implicates an error.

Screenshots

Version

  • OS: 15.2.0 / 14.7.1
  • Xcodes: 2.4.1

juloski avatar Dec 17 '24 12:12 juloski

I'm getting the same error in 15.3.1 with Xcodes 2.4.1 (30) (Installed via homebrew)

2 workarounds worked for me:

  • Using xcodes command from the command line works (It correctly asks for the macOS user password to copy Xcode to the /Applications folder).
  • Installing XcodesApp manually from the releases page: https://github.com/XcodesOrg/XcodesApp/releases/tag/v2.4.1b30

dcacenabes avatar Mar 07 '25 11:03 dcacenabes

@dcacenabes Thanks

Using xcodes command worked for me. (but manual install didn't work 🤕)

acevif avatar Mar 11 '25 07:03 acevif

+1. I'm having this same issue:

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

I'm on Sequoia 15.4.

Using the cli xcodes worked perfectly.

wvabrinskas avatar Mar 31 '25 22:03 wvabrinskas

same issue on Sequoia 15.4.

xueyaodeai avatar Apr 02 '25 02:04 xueyaodeai

For me Sequoia 15.4 I did the following:

NOTE GUI (Application) did not work and neither did install via HomeBrew ...

Download Xcodes.zip with CLI tools here: https://github.com/XcodesOrg/xcodes/releases/tag/1.6.0

Unzip the zip file your downloads folder and then start a new terminal to run: cd downloads

downloads % sudo mv xcodes /usr/local/bin/

downloads % sudo chmod +x /usr/local/bin/xcodes

xcodes --help

This prompts for your apple login... sudo xcodes install 16.3

You should see... (1/6) Downloading Xcode 16.3.0+16E140: 100% (2/6) Unarchiving Xcode (This can take a while) Using regular unxip. Try passing --experimental-unxip for a faster unxip process (3/6) Moving Xcode to /Applications/Xcode-16.3.0.app (4/6) Moving Xcode archive Xcode-16.3.0+16E140.xip to the Trash (5/6) Checking security assessment and code signing (6/6) Finishing installation

Check it really is installed xcodes installed

xcodes select 16.3

ryanlpoconnell avatar Apr 10 '25 17:04 ryanlpoconnell

Turns out the solution for me was to give Xcodes Full Disk Access in Privacy settings.

https://github.com/XcodesOrg/XcodesApp/issues/706#issuecomment-2783712833

wvabrinskas avatar Apr 14 '25 22:04 wvabrinskas

Turns out the solution for me was to give Xcodes Full Disk Access in Privacy settings.

This also worked for me. I think the fix would be to change the error message and hint the user towards toggling the switch at "System Settings -> Privacy & Security -> Full Disk Access -> Xcodes"

rocketnik avatar May 07 '25 09:05 rocketnik

The Full Disk Access worked for me. I think ones of the macOS updates (Sequioia 15.4 or 15.5) messed with my previously set permissions—I wonder if it's possible to add a check for permissions before writing to guide the user to reenable it? I realise it's macOS's fault, but it might be nice if the user can be guided to the correct solution.

ghost avatar Jun 02 '25 11:06 ghost