where is the xcode license being accepted?
mwilkes-lark opened this issue · comments
I'm using the InstallHomebrew.zsh and notice that it does not provide xcode license acceptance. Do you have a snippet somewhere that does that?
In particular, I've got an installer that checks for homebrew being present, but failed with this error:
Error: You have not agreed to the Xcode license. Please resolve this by running: sudo xcodebuild -license accept
Is this a per user license acceptance or can I run this as the kandji root-level user and accept the license for all users on the device?
Thanks!
--Mike
Hi @mwilkes-lark, in this context the xcode cli tools are being installed using softwareupdate
; there should not be a need to explicitly accept xcode licensing.
There is an audit script here that can be used to check for the presence of brew
on a Mac.