Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

xcode

ios

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.

like image 436
robogos Avatar asked Jan 09 '23 14:01

robogos


1 Answers

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
like image 144
Aman Jain Avatar answered Jan 12 '23 02:01

Aman Jain