Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”解决

今天升级了xcode,然后在pycharm上使用git的时候就报错:

Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.

解决办法如下:在终端中输入

sudo xcodebuild -license

然后一路回车或者空格

最后根据提示输入agree,回车

注意,一定要重启pycharm不然git还是会报错

 


版权声明:本文为ssjdoudou原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。