Saki's 研究记录

Mac 终端报错: You have not agreed to the Xcode license agreements

字数统计: 175阅读时长: 1 min
2022/09/13

mac终端运行命令的时候会被提示没有同意 xcode证书 ,这个时候需要在 Terminal中同意 license

1
2
3
You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Press the 'return' key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/en.lproj/License.rtf'

打开终端输入 sudo xcodebuild -license,会看到一大堆的 license说明,直接按下空格浏览。

根据提示输入 agree ,回车就搞定了

1
2
3
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] agree

You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/en.lproj/License.rtf

以上。

CATALOG