美文网首页
iOS使用cocoapods 安装libwebp0.6.0遇到E

iOS使用cocoapods 安装libwebp0.6.0遇到E

作者: 新生的光明 | 来源:发表于2018-08-15 15:35 被阅读0次

    1.查看mac中cocoapods 本地库路径:
    pod repo
    /Users/swae/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/executable.rb:89: warning: Insecure world writable dir /opt in PATH, mode 040777

    master

    2.在本地库中, 并找到对应的libwebp版本的文件
    find /Users/swae/.cocoapods/repos/master -iname libwebp

    3.进入libwebp目录,可以看到你的仓库中有哪些对应的版本
    swaedeMacBook-Pro:libwebp swaecd /Users/swae/.cocoapods/repos/master/Specs/1/9/2/libwebp swaedeMacBook-Pro:libwebp swae ls -l
    total 0
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.4.1
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.4.2
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.4.3
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.4.4
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.5.0
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.5.1
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.5.2
    drwxr-xr-x 3 swae staff 96 12 3 21:50 0.6.0

    4.进入对应版本的libwebp文件夹,找到libwebp.podspec.json
    "source": {
    "git": "https://chromium.googlesource.com/webm/libwebp",
    "tag": "v0.6.0"
    },
    将其中的"git" 对应的url替换为https://github.com/webmproject/libwebp.git,并保存 最后再执行pod install, 完成

    相关文章

      网友评论

          本文标题:iOS使用cocoapods 安装libwebp0.6.0遇到E

          本文链接:https://www.haomeiwen.com/subject/irjwbftx.html