pod install 报错 Error installing libwebp

报错原文:
[!] Error installing libwebp
[!] /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/tm/401gns593114zycgylft1xv00000gn/T/d20210909-704-1e33fvs --template= --single-branch --depth 1 --branch v1.2.0

Cloning into '/var/folders/tm/401gns593114zycgylft1xv00000gn/T/d20210909-704-1e33fvs'...
fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/': Failed to connect to chromium.googlesource.com port 443: Operation timed out
报错截图:

报错截图

解决办法:
直接进入到/Users/(你本地的名字)/.cocoapods/repos/master/Specs/1/9/2/libwebp ,选择1.2.0文件夹把里面的libwebp.podspec.json打开,将里面的git: https://chromium.googlesource.com/webm/libwebp/ 地址修改为 https://github.com/webmproject/libwebp.git 就可以了

你可能感兴趣的:(pod install 报错 Error installing libwebp)