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

今天卸载了xcode-beta之后 装回xcode,run项目的时候提示
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

解决方法:
1、打开终端,输入 sudo xcodebuild -license

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

3、终端提示 一直按下 “space” 键阅读许可协议,会自动阅读到最后一行停下

4、最终,终端会出现三个选项,agree 、print、cancel,输入agree,然后enter

你可能感兴趣的:(解决xcode Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.)