问题描述: Error installing libwebp
[!] Error installing libwebp
[!] /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/7z/nf_v0mlx2yq0tsssp88gc_9h0000gp/T/d20210407-21884-alqvdx --template= --single-branch --depth 1 --branch v1.0.2
Cloning into '/var/folders/7z/nf_v0mlx2yq0tsssp88gc_9h0000gp/T/d20210407-21884-alqvdx'...
fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/': Failed to connect to chromium.googlesource.com port 443: Operation timed out
原因:天朝无法访问国外的源,需要进行更换源 查找到cocoapod文件夹下
.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp/1.0.2/libwebp.podspec.json
1.0.2
是版本号,查找对应的版本号更改source
的git
更改为https://github.com/webmproject/libwebp.git
"source": {
"git": "https://github.com/webmproject/libwebp.git",
"tag": "v1.0.2"
},
网友评论