Ios – Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo

gitiosxcode

I am using Mac OS X 10.9.5 with git version 2.1.2. Entering
git push
I receive:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I have run
sudo xcodebuild -license
and entered 'agree', but the problem remains.
Opening Xcode there is no licence agreement appearing.

Best Answer

sudo xcodebuild -license will show you the license of Xcode.You have to agree its terms and condition at the end or you can just run the command given below.

sudo xcodebuild -license accept
Related Topic