问题:
pod install 发现某个 pod 一直安装失败
错误提示:
|
Installing nanopb (2.30908.0) [!] Error installing nanopb [!] /usr/bin/git clone https://github.com/nanopb/nanopb.git /var/folders/ww/6gq9gbjd7gz_svrx2q9kkchr0000gn/T/d20230904-19044-tnlea5 --template= --single-branch --depth 1 --branch 0.3.9.8 Cloning into '/var/folders/ww/6gq9gbjd7gz_svrx2q9kkchr0000gn/T/d20230904-19044-tnlea5'... fatal: unable to access 'https://github.com/nanopb/nanopb.git/': Recv failure: Operation timed out |
解决:
可以手工 git clone 试试
上边的问题对应执行
|
# 倒数第二个参数 url 如果 github 不好使可以替换成国内的;最后的 path 是项目下边的 Pods/**pod** /usr/bin/git clone --template= --single-branch --depth 1 --branch 0.3.9.8 https://github.com/nanopb/nanopb.git **project_dir**/Pods/nanopb |
然后再重新 pod install
参考: