在 mac
终端运行命令的时候会被提示没有同意 xcode
证书 ,这个时候需要在 Terminal
中同意 license
。
1 | You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode. |
打开终端输入 sudo xcodebuild -license
,会看到一大堆的 license
说明,直接按下空格浏览。
根据提示输入 agree
,回车就搞定了
1 | 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 |
以上。