XcodesOrg / XcodesApp

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

Ask admin credentials if Xcode installation in /Applications is not allowed #112

Open pyby opened 3 years ago

pyby commented 3 years ago

As a developer, my Mac OS session runs with a "Standard" user. I have an "Admin" user, if some actions require admin privilege, like installing Xcode application in the /Applications folder.

I tried to install Xcode 12.5 beta 2 with the application with aria2. The zip was in the Application Support folder, and Xcode was unzipped. But nothing happen to allow the installation in the /Applications.

I've installed the "Privileged helper" but it didn't help.

Some ideas:

Xcodes app update with Sparkle SDK on a Standard user session
rzulkoski commented 1 year ago

Any movement on this? This would be useful for a use-case I have as well.

MrCoBalt commented 1 year ago

Chiming in/bumping as this would be very helpful for us as well… or perhaps it could be clarified if the helper tool is supposed to be able to accomplish these privileged operations, but just isn't working as expected?

We scripted the installation of Xcodes.app and an auto-install of the helper tool for our often-standard-level devs in the hopes that it could save them some privilege escalation but it appears that they still hit a wall post-un-xip where the app can't be moved to /Applications with the error “Xcode” couldn’t be moved because you don’t have permission to access “Applications”. 😞

triplef commented 8 months ago

We’d love to see this supported as well.

ziekxq commented 6 months ago

Any update on this? We recently implemented privilege management in our environment and running into this very same issue.

esummers commented 6 months ago

I didn't dive deeply in to it, but I'm guessing the problem is Xcodes assumes you are an admin user when copying to the Applications folder. The file copy probably needs to be moved to the Privileged Helper to be compatible with standard user accounts and privilege management software.

rhysm94 commented 1 month ago

Hey – just to bump this issue and say that I'm experiencing it too.

I've got the privileged helper installed, and yet I still can't get Xcodes to rename my Xcode installs to Xcode.app when changing versions, nor to uninstall any versions of Xcode that I no longer need. In every case, I get the "Xcode-15.4.0.app" couldn’t be moved because you don’t have permission to access "Applications" error.