[!] Error installing libwebp [!] /usr/local/bin/git clone https://chromium.googlesource.com/webm/...

原因:

pod repo中libwebp的地址是谷歌的,因为谷歌嘛,所以你懂得

解决办法:

终端执行pod repo

[!] Error installing libwebp [!] /usr/local/bin/git clone https://chromium.googlesource.com/webm/..._第1张图片

image.png

在本地库中, 并找到对应的libwebp版本的文件 执行命令find ~/.cocoapods/repos/master -iname libwebp

[!] Error installing libwebp [!] /usr/local/bin/git clone https://chromium.googlesource.com/webm/..._第2张图片

image.png

拿到上面的路径,前往文件夹(command+shift+G)~/.cocoapods/repos/master/Specs/1/9/2/libwebp

[!] Error installing libwebp [!] /usr/local/bin/git clone https://chromium.googlesource.com/webm/..._第3张图片

image.png

用哪一个版本进入那个版本的文件夹

[!] Error installing libwebp [!] /usr/local/bin/git clone https://chromium.googlesource.com/webm/..._第4张图片

image.png

打开libwebp.podspec.json文件

[!] Error installing libwebp [!] /usr/local/bin/git clone https://chromium.googlesource.com/webm/..._第5张图片

image.png

把source - git中的url更换成https://github.com/webmproject/libwebp.git然后保存 最后重新执行pod install。

记住一定是pod install 而不是pod update。不然你改的东西又回去了!!!!!

你可能感兴趣的:([!] Error installing libwebp [!] /usr/local/bin/git clone https://chromium.googlesource.com/webm/...)