解决 Agreeing to the Xcode/iOS license requires admin privileges

2017-04-05 01:03:20

一时兴起,决定将mac 上的xcode b1 卸载掉,安装xcode b3,卸载和安装过程一直很顺利,问题出现在我使用svn的过程中,当我打开终端,敲入svn update命令后,屏幕上毅然决然的出现了“

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

”,


一阵google,没找到最终解决方法,问题总的解决,从错误信息来看,似乎需要通过管理员身份来接受许可协议,于是试着从这个角度google,终于在这里找到了解决方法:


1、打开终端,输入  sudo xcodebuild -license


2、终端提示敲回车键(enter)打开许可协议,照做


3、终端提示 按下  “space” 键阅读许可协议,按“q” 不阅读


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




至此问题解决,