Post

Replies

Boosts

Views

Activity

Automate the Install of Xcode Command Line Tools
Does anyone know how to automate the install of Xcode Command Line Tools? Bonus points for doing it in a supportable Apple method, and if possible, leveraging the macOS version of Bash I've tried this method: (sorry, this forum won't allow the link) xcode-select --install sleep 1 osascript <<EOD tell application "System Events" tell process "Install Command Line Developer Tools" keystroke return click button "Agree" of window "License Agreement" end tell end tell EOD This automation fails because on first-run, the Security & Privacy wants (user) approval for: Accessibility > sshd-keygen-wrapper: annoying (bottom) This approval must be provided before the install but there is no way to manually approve before the install, nor automate the approval during the install At least not as far as far as I can see. Any help is appreciated. TIA
2
0
4.3k
Jan ’22