1.find /Users/***/.cocoapods/repos -iname libwebp
出现如下展示:
/Users/***/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp
/Users/***/.cocoapods/repos/master/Specs/1/9/2/libwebp(版本不同可能没有master,找不到找/Users/***/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp)
/Users/***/.cocoapods/repos/trunk/Specs/1/9/2/libwebp (版本不同可能找不到,找不到找/Users/***/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp)
2.执行下面的操作打开对应的三方库
open /Users/***/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp
找到对应的版本,修改文件的podspec.json里面的source,如下
3.打开文件
找下下面的source
"source": {
"git": "https://chromium.googlesource.com/webm/libwebp",
"tag": "v1.2.0"
}
4.将这里的git链接改成 https://github.com/webmproject/libwebp.git 并保存,这个路径是这个库在github上对应的路径。
然后在pod install
原文链接:https://blog.csdn.net/xiazhengcheng/article/details/119830862
标签:Users,repos,install,libwebp,pod,cocoapods,Specs From: https://www.cnblogs.com/lulushen/p/17306165.html