.镜像下载 Cocoapods
.降低版本
1.镜像下载 Cocoapods
git clone [https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git](https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git) ~/.cocoapods/repos/trunk
1.降低版本
2步骤
sudo gem uninstall cocoapods 卸载
sudo gem install -n /usr/local/bin cocoapods -v 1.8.4 安装指定版本
3. 查找 cocoapods 中库的路径的/电脑中 podspec.json的路径
//eg:查找 libwebp 路径
find ~/.cocoapods/repos -iname libwebp
//输出
/Users/ios/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp
//source 替换路径
(https://github.com/webmproject/libwebp.git)
4. libwebp 替换源
//eg:查找 libwebp 路径
find ~/.cocoapods/repos -iname libwebp
//输出
/Users/ios/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp
//source 替换路径
(https://github.com/webmproject/libwebp.git)
网友评论