操作步驟:
1秉撇、在終端執(zhí)行?pod repo?獲取到?cocoapods?本地庫地址罗岖。
localhost:Nasdaq guxiaojie$ pod repo
master
- Type: git (master)
- URL:? https://github.com/CocoaPods/Specs.git
- Path: /Users/guxiaojie/.cocoapods/repos/master
2. open?/Users/guxiaojie/.cocoapods/repos/master
3. Finder里面直接search libwebp
4. ?根據(jù)pod install的失敗記錄Installing libwebp (1.0.2)
打開版本號(hào)(1.0.2)對(duì)應(yīng)的?podspec?文件 -》〉》〉 libwebp.podspec.json
5.
把"source": {
? ? "git": "https://chromium.googlesource.com/webm/libwebp",
? ? "tag": "v1.0.2"
? },
改成
"source": {
? ? "git": "https://github.com/webmproject/libwebp.git",
? ? "tag": "v1.0.2"
? },
6 pod install
開心吧少年