当前位置: 首页>数据库>正文

iOS CocoaPods pod install 报错pod Error installing libwebp

最近项目提交三方库SDWebImage/WebP时遇到以下报错:

Installing libwebp (1.1.0)

[!] Error installing libwebp

[!] /usr/bin/git clone [https://chromium.googlesource.com/webm/libwebp](https://chromium.googlesource.com/webm/libwebp) /var/folders/y5/1jbgfpg956jf5x7b9f8v9kzw0000gp/T/d20180930-67622-1ye8vu2 –template= –single-branch –depth 1 –branch v1.1.0

Cloning into ‘/var/folders/y5/1jbgfpg956jf5x7b9f8v9kzw0000gp/T/d20180930-67622-1ye8vu2’…

fatal: unable to access ‘[https://chromium.googlesource.com/webm/libwebp/’:](https://chromium.googlesource.com/webm/libwebp/':) Failed to connect to chromium.googlesource.com port 443: Operation timed out

网上找了一堆方案,总结如下:

  • 打开终端执行pod repo(查看本机cocoapods路径,如下图1)
  • 拼接路径:第一步的路径/Specs/1/9/2/libwebp
  • command+shift+G(或者右键finder)前往文件夹,输入第二步路径前往
  • 打开文件夹后看你的报错信息,我这里是libwebp (1.1.0),用文本打开对应的json文件(如下图2)
  • 修改json文件中source对应的git地址为:https://github.com/webmproject/libwebp.git
    iOS CocoaPods pod install 报错pod Error installing libwebp,第1张
    1.png
iOS CocoaPods pod install 报错pod Error installing libwebp,第2张
2.png

https://www.xamrdz.com/database/6zd1994189.html

相关文章: