Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”
Posted 柳鲲鹏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”相关的知识,希望对你有一定的参考价值。
初次安装,运行gcc,按理说应该提示clang: error: no input files,结果提示这个。意思就是你没有同意协议,所以不能执行。要执行就要同意协议。
- 提示
$ gcc
Agreeing to the Xcode/ios license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.
- 执行
sudo xcodebuild -license
按多次空格,直到出现下述文字后,输入agree回车:
By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel]
以上是关于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”
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.”