Programmers learn & share
0 votes

Problem :

While trying to compile my C program I encountered following error
agreeing to the xcode/ios license requires admin privileges, please re-run as root via sudo.
by (6.9k points)   | 46 views

1 Answer

0 votes

Solution :

I also got stuck as I was trying to a go get it was related to git. Please find the solution as follows:

  1. I tried the following in the terminal:

    sudo xcodebuild -license
  2. That opened the agreement. Now you need to go all the way to end and type "agree".

That will take care of all go get issues.

The solution was quite interesting i hope it helps you.

by (36.1k points)  
2,204 questions
2,598 answers
241 users