Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” a
Posted tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” a相关的知识,希望对你有一定的参考价值。
报错:
从错误信息来看,似乎需要通过管理员身份来接受许可协议,于是试着从这个角度google,终于在这里找到了解决方法:
1、打开终端,输入 sudo xcodebuild -license
2、终端提示敲回车键(enter)打开许可协议,照做
3、终端提示 按下 “space” 键阅读许可协议,按“q” 不阅读
4、最终,终端会出现三个选项,agree 、print、cancel,不用想,能不是agree 吗!输入agree,然后enter
至此问题解决,
以上是关于Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” a的主要内容,如果未能解决你的问题,请参考以下文章
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”
Xcode iOS app build for latest iPhone (How to make Xcode to deploy to the latest iOS without update
Accept Xcode/iOS License to run git
appium+Xcode+ios:ideviceinstaller -l命令报错“Could not connect to lockdownd. Exiting.”