XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.6k stars 120 forks source link

Permission denied as a standard user #259

Open chkpnt opened 1 year ago

chkpnt commented 1 year ago

When using xcodes under a standard user (non-admin), the installation into /Applications will fail.

Downloading with aria2 (/Users/ci/homebrew/bin/aria2c)
(1/6) Downloading Xcode 14.2.0+14C18: 99 %
(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-14.2.0.app
“Xcode” couldn’t be moved because you don’t have permission to access “Applications”.

I suggest to ask for the credentials of an admin account and to execute the moving operation under this user.

DavidHSW commented 1 year ago

Same issue. Any clue?

chkpnt commented 1 year ago

My workaround was to install xcodes for and use it with an admin user. Which is unpleasant, as I wanted to install xcodes via Homebrew -- but in my CI environment, Homebrew is installed with a custom prefix for my non-admin ci user.

astrokin commented 1 year ago

Same issue.