XcodesOrg / xcodes

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

macOS User Password #128

Closed menvol3 closed 2 years ago

menvol3 commented 3 years ago

Hi, I’m trying to automate Xcode installation with this tool, and I’d like to now is it possible to add variable "macOS User Password" or maybe checking if user have sudo rights and then ask for the password prompt or execute command ?

interstateone commented 3 years ago

Hey @menvol3, good question. The short answer is that there isn't anything like that right now, and xcodes could probably handle automation use cases better. Can you tell me more about what you're trying to do and how you're doing it? Please elaborate as much as you can, but include how xcodes is being invoked (for example from a shell script) and whether its in an interactive shell. Then we can figure out the best way to handle this.

menvol3 commented 3 years ago

Hi @interstateone Currently I’m trying to create Jenkins job that will be installing/updating Xcode on machines with this tool. For now it invoked from shell command xcodes install 12. Env variables xcodes login and password also exists in this pipeline. it will be good if the same variable as login or pass, will be for the mac os user password too.