美文网首页
安装Pod库

安装Pod库

作者: 大熊Daniel | 来源:发表于2020-10-13 16:21 被阅读0次
    最新版的MacOS Catalina系统命令行执行pod setup 会造成命令直接结束

    1.先清空以下文件夹
    /Users/username/.cocoapods/repos/trunk
    2.执行

    git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk
    

    或者

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

    或者

    git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk --depth 1
    git clone https://github.com/CocoaPods/Specs.git master --depth 1
    git clone --depth=1  https://github.com/CocoaPods/Specs.git master
    git clone git://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk
    

    3.正确的目录结构


    image.png

    4.验证

    pod search AFNetworking
    

    相关文章

      网友评论

          本文标题:安装Pod库

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