XcodesApp icon indicating copy to clipboard operation
XcodesApp copied to clipboard

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

Open pyby opened this issue 3 years ago • 6 comments

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.
Xcodes app update with Sparkle SDK on a Standard user session

pyby avatar Mar 02 '21 13:03 pyby

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

rzulkoski avatar Nov 10 '22 20:11 rzulkoski

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”. 😞

MrCoBalt avatar Apr 10 '23 23:04 MrCoBalt

We’d love to see this supported as well.

triplef avatar Oct 25 '23 19:10 triplef

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

ziekxq avatar Dec 18 '23 16:12 ziekxq

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.

esummers avatar Dec 18 '23 19:12 esummers