美文网首页
Cocoapod 快速安装 及使用

Cocoapod 快速安装 及使用

作者: iOS_Developer | 来源:发表于2019-04-12 18:52 被阅读0次

    一、下载:首先,github 的repo库下载太慢,且经常失败,所以从以下地址下载:
    https://code.aliyun.com/Magi/CocoaPods.git
    https://gitclub.cn/CocoaPods/Specs.git
    https://git.coding.net/CocoaPods/Specs.git(已经停止更新,但亲测可用)
    二、将解压后的master文件夹(如果名称不叫master,改成master),放入~/.cocoapods/repo文件夹下,文件结构如图:

    image.png
    三、配置:终端
    cd ~/.cocoapods/repos/master
    

    然后初始化

    git init
    

    添加origin

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

    ,检查一下

    pod repo
    
    image.png

    四、后面就是创建Podfile
    五、pod install --no-repo-update

    六、千亲万苦,终于可用了 image.png

    https://blog.csdn.net/smxalong/article/details/84402789

    相关文章

      网友评论

          本文标题:Cocoapod 快速安装 及使用

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