pod install libwebp 问题

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

posted @ 2023-04-11 14:37  Belinda_sl  阅读(82)  评论(0编辑  收藏  举报