Git – Apple license requirement message

Mac OSX uses Apple’s Xcode for its git integration. However, if Xcode’s license has changed you will have to accept it before you can proceed.
The error you will see is similar to:
“Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.”
To accept the license without opening the Xcode GUI, you can use the following command:
sudo xcodebuild -license
You can then re-try your git command.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Need help?
© The President and Fellows of Harvard College
Except where otherwise noted, this content is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.