Agreeing to the Xcode/iOS license requires admin privileges

xcode.jpeg

错误描述


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


解决方法

打开终端,输入 sudo xcodebuild -license

终端提示敲回车键(enter)打开许可协议 ,回车继续

终端提示 按下 “space” 键阅读许可协议,按“q” 不阅读 ,直接 q 即可

最终,终端会出现三个选项,agree 、print、cancel,不用想,能不是agree 吗!当然是输入agree,然后enter

出自:Agreeing to the Xcode/iOS license requires admin privileges



回到顶部