当使用 pod 引入 libwebp库时报错
[!] Error installing libwebp
[!] /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/ph/syt7v4qs7j51cg2x_fp2jb940000gn/T/d20181010-65597-1p6saek --template= --single-branch --depth 1 --branch v1.0.0
Cloning into '/var/folders/ph/syt7v4qs7j51cg2x_fp2jb940000gn/T/d20181010-65597-1p6saek'...
fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/': Failed to connect to chromium.googlesource.com port 443: Operation timed out
修改步骤
1.到cocoapods本地 spec文件管理目录下,找到libwebp
image.png
image.png
2.修改你需要的版本的spec文件
image.png
3.替换source 的Git 地址https://github.com/webmproject/libwebp.git
完成
网友评论