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

假如想象 提交于 2019-12-04 16:43:23

问题


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.

回答1:


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.



来源:https://stackoverflow.com/questions/32720476/agreeing-to-the-xcode-ios-license-requires-admin-privileges-please-re-run-as-ro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!