美文网首页
cocoa pods 相关操作

cocoa pods 相关操作

作者: 豆豆哥哥 | 来源:发表于2020-12-29 18:47 被阅读0次

    .镜像下载 Cocoapods
    .降低版本

    1.镜像下载 Cocoapods

    git clone [https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git](https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git) ~/.cocoapods/repos/trunk
    

    1.降低版本

    2步骤

    sudo gem uninstall cocoapods  卸载
    sudo gem install -n /usr/local/bin cocoapods -v 1.8.4   安装指定版本
    

    3. 查找 cocoapods 中库的路径的/电脑中 podspec.json的路径

    //eg:查找 libwebp 路径
    find ~/.cocoapods/repos -iname libwebp
    //输出
    /Users/ios/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp
    //source 替换路径
    (https://github.com/webmproject/libwebp.git)
    

    4. libwebp 替换源

    //eg:查找 libwebp 路径
    find ~/.cocoapods/repos -iname libwebp
    //输出
    /Users/ios/.cocoapods/repos/cocoapods/Specs/1/9/2/libwebp
    //source 替换路径
    (https://github.com/webmproject/libwebp.git)
    

    相关文章

      网友评论

          本文标题:cocoa pods 相关操作

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