mac电脑在安装阿里云go语言短信sdk时报错:

安装命令:go get -u http://github.com/aliyun/alibaba-cloud-sdk-go/sdk

Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.

package github.com/aliyun/alibaba-cloud-sdk-go/sdk: exit status 69

解决办法:

在终端执行sudo xcodebuild -license

然后弹出password 输入计算机本机密码

当出现如下的时候一直按回车键

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

Hit the Enter key to view the license agreements at ‘/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf’

此处是查看协议

一直按到出现下面文字为止

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回车

然后在执行安装短信sdk命令:go get -u github.com/aliyun/alibaba-cloud-sdk-go/sdk

即可成功

文章来源于互联网,如有雷同请联系站长删除:mac电脑在安装阿里云go语言短信sdk时报错:

发表评论