Cocoapods报错解决

1. libwebp 不能下载

fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/'

参考: https://www.jianshu.com/p/9e3eec3d8fe0
根据报错的版本, 找到本机中相应的版本路径:/Users/cuiyuhe/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp/1.1.0
更改文件libwebp.podspec.json中的值:

https://chromium.googlesource.com/webm/libwebp
改为:
https://github.com/webmproject/libwebp.git

注意:
该方法仅为临时解决办法,下一次update后又要修改,pod install 后面要加上 --no-repo-update

2. svn报错:

svn: error: The subversion command line tools are no longer provided by Xcode.

参考: https://blog.csdn.net/wueasy/article/details/105304818
需要安装svn. brew install svn
如果报错的话, 就按照提示, 执行命令. 如:

安装svn报错

/usr/local/lib/pkgconfig

你可能感兴趣的:(Cocoapods报错解决)