Search Docs by Keyword

Table of Contents

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.

© 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.