美文网首页
转: 解决 pod setup 错误、失败的问题

转: 解决 pod setup 错误、失败的问题

作者: 简单易写 | 来源:发表于2019-05-07 15:58 被阅读0次

    1、首先去github上下载.zip文件:https://github.com/CocoaPods/Specs

    image

    2、将下载的 master.zip 解压出来,解压后的文件目录:

    image

    3、将解压出来的文件目录复制到 /.cocoapods/repos/master 目录:

    image

    4、 然后cd到master目录:

    cd ~/.cocoapods/repos/master
    

    5、初始化git:

    git init
    
    

    6、关联仓库:

    git remote add origin https://github.com/CocoaPods/Specs
    
    

    7、查看我们的repo是否正常,终端输入:

    pod repo
    

    结果如图:

    image

    8、 最后测试下 pod search 和 pod install,都可以正常使用了。

    相关文章

      网友评论

          本文标题:转: 解决 pod setup 错误、失败的问题

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