出现如下错误:
[!] Error installing libwebp
[!] /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/bf/5d5wjwm52dggdbd398pr6l300000gn/T/d20210825-85274-jqauru --template= --single-branch --depth 1 --branch v1.2.0
Cloning into '/var/folders/bf/5d5wjwm52dggdbd398pr6l300000gn/T/d20210825-85274-jqauru'...
fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/': Failed to connect to chromium.googlesource.com port 443: Operation timed out
解决方法
1、找到路径
➜ ~ pod repo
Ignoring unf_ext-0.0.7.6 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.6
aliyun-specs
- Type: git (master)
- URL: https://github.com/aliyun/aliyun-specs.git
- Path: /Users/hn/.cocoapods/repos/aliyun-specs
gitee-mirrors-cocoapods-specs
- Type: git (remotes/origin/master)
- URL: https://gitee.com/mirrors/CocoaPods-Specs.git
- Path: /Users/hn/.cocoapods/repos/gitee-mirrors-cocoapods-specs
master
- Type: git (remotes/origin/master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/hn/.cocoapods/repos/master
neteaseimclient
- Type: git (main)
- URL: https://AdiAccount:d165621467@github.com/NeteaseIMClient/CocoaPodsRepoYach.git
- Path: /Users/hn/.cocoapods/repos/neteaseimclient
trunk
- Type: CDN
- URL: https://cdn.cocoapods.org/
- Path: /Users/hn/.cocoapods/repos/trunk
5 repos
其中 trunk 下 Path 是我们需要的:
2、地址拼接:
~/.cocoapods/repos/master/Specs/1/9/2/libwebp
3、打开你要加载的版本相应的文件夹,如我的错误信息为Installing libwebp (1.2.0),则用文本编辑打开1.2.0文件夹的json文件
4、内容路径更新
将json中source下git地址 https://chromium.googlesource.com/webm/libwebp
更改为 https://github.com/webmproject/libwebp.git