XcodesApp
XcodesApp copied to clipboard
Ask admin credentials if Xcode installation in /Applications is not allowed
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:
- Like Sparkle, when Xcodes application detects an update, the sdk downloads it. Then, it asks credential to install in
/Applications
. - I assume the "Privileged helper" needs "admin" authorisation to do the stuff. Ask credentials in the UI if needed.

Any movement on this? This would be useful for a use-case I have as well.
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”.
😞
We’d love to see this supported as well.
Any update on this? We recently implemented privilege management in our environment and running into this very same issue.
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.