Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo cannot run git after OS update [duplicate]

The IDE is giving an error message that it

can't start git: /usr/bin/git, however the path is correct, and it was working before. idea.log contains the following error:

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
like image 555
StackFlowed Avatar asked Sep 22 '15 15:09

StackFlowed


1 Answers

This generally occurs after the mac OS update. All you need to do in terminal is run

sudo xcodebuild -license

and then agree to the terms.

like image 52
StackFlowed Avatar answered Oct 06 '22 23:10

StackFlowed