Solutions:
Check the cocoapods local library path: Pod repo
$ pod repo
master
- Type: git (master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/ammk/.cocoapods/repos/master
1 repo
Copy the code
Find ~/.cocoapods/repos/ master-iname libwebp
The find ~ /. Cocoapods/repos/master -iname libwebp output/Users/ammk /. Cocoapods/repos/master/Specs / 1/9/2 / libwebpCopy the code
Libwebp libwebp
$ cd ~/.cocoapods/repos/master/Specs/1/9/2/libwebp
$ ls -lTotal 0 DRWXr-XR-x 3 HuanghaIPO Staff 96 9 5 2017 0.4.1 DRWXr-xr-x 3 HuanghaIPO Staff 96 9 5 2017 0.4.2 DRWXR-Xr-x 3 Huanghaipo Staff 96 9 5 2017 0.4.3 DRWXr-XR-X 3 HuanghaIPO Staff 96 9 5 2017 0.4.4 DRWXR-XR-X 3 HuanghaIPO Staff 96 9 5 2017 0.5.0 DRWxr-XR-x 3 HuanghaIPO Staff 96 9 5 2017 0.5.1 DRWxr-xr-x 3 HuanghaIPO Staff 96 9 5 2017 0.5.2 DRWXr-xr-x 3 Huanghaipo Staff 96 9 5 2017 0.6.0 DRWxr-XR-X 3 HuanghaIPO Staff 96 4 12 2018 0.6.1 DRWXR-XR-x 3 HuanghaIPO Staff 96 2 14 17:59 1.0.0 drwxr-xr-x 3 HuanghaIPO Staff 96 5 29 2019 1.0.1 DRwxr-xr-x 3 HuanghaIPO Staff 96 2 17 10:09 1.0.2 Drwxr-xr-x 4 HuanghaIPO Staff 128 2 17 10:09 1.0.3 DRWxr-xr-x 3 HuanghaIPO Staff 96 2 17 10:09 1.1.0 drWXr-xr-x 3 Huanghaipo Staff 96 2 17 10:09 1.1.0- RC2Copy the code
Go to 1.1.0 and modify the homepage in the libwebp.podspec.json file source->git.
$ cd1.1.0 $ls-l
total 8
-rw-r--r-- 1 huanghaipo staff 1854 2 17 10:09 libwebp.podspec.json
Copy the code
Modify the
$ sudo vim libwebp.podspec.json
Copy the code
Change the homepage to https://github.com/webmproject/, the source – > https://github.com/webmproject/libwebp.git instead of git
"name": "libwebp"."version": "1.0.0"."summary": "Library to encode and decode images in WebP format."."homepage": "https://developers.google.com/speed/webp/"."authors": "Google Inc."."license": {
"type": "BSD"."file": "COPYING"
},
"source": {
"git": "https://chromium.googlesource.com/webm/libwebp"."tag": "v1.0.0"
},
Copy the code
Then go to the project directory and run pod Install
Back again to execute the pod surface error, install or the newspaper. Check under the master libwebp podspec. The json file is normal. There is still a problem with the trunk source, but you can download it. Finally, run pod repo remove trunk to delete the trunk source and run pod install. OK