podfile: pod 'SAMKeychain'
终端:pod install
结果:
[!] Error installing libwebp
[!] /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/g8/ghnv9vjs5lnf7lks_v17fmh00000gn/T/d20201102-24558-144lh4f --template= --single-branch --depth 1 --branch v1.0.3
Cloning into '/var/folders/g8/ghnv9vjs5lnf7lks_v17fmh00000gn/T/d20201102-24558-144lh4f'...
fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/': Failed to connect to chromium.googlesource.com port 443: Operation timed o];
解决方法:
1、pod repo 查看 cocoapods 在本机的PATH path/.cocoapods/repos/master path/.cocoapods/repos/trunk
2、拼接地址:由1所得出path拼接为,path/Specs/1/9/2/libwebp
3、右键finder前往文件夹,将2所得地址输入,前往
4、打开你要加载的版本相应的文件夹,如我的错误信息为Installing libwebp (1.1.0),则用文本编辑打开1.1.0文件夹的json文件。
5、将json中source下git地址更改为https://github.com/webmproject/libwebp.git
网友评论