iOS Pod 问题整理

问题描述: 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是版本号,查找对应的版本号更改sourcegit更改为https://github.com/webmproject/libwebp.git

"source": {
    "git": "https://github.com/webmproject/libwebp.git",
    "tag": "v1.0.2"
  },

你可能感兴趣的:(iOS Pod 问题整理)