美文网首页
最新 macOS 安装CocoaPods及使用详解

最新 macOS 安装CocoaPods及使用详解

作者: nadou23 | 来源:发表于2017-10-17 18:26 被阅读6次

    当使用CocoaPods 时报解决Unable to add a source with url https://github.com/CocoaPods/Specs.git named

    解决方案:

    pod repo add master https://github.com/CocoaPods/Specs.git
    
    

    然后如果提示执行’pod setup’,
    那就在终端

    pod setup
    

    如果出现

    [!] The `master` repo is not a git repo.
    

    进入/users/你的用户名/.cocoapods/repos,删除master文件夹
    然后执行

    pod setup
    

    如果是安装多个Xcdoe,还需要选择Xcode的路径https://blog.csdn.net/u010046748/article/details/52681192

    参考技术贴和博客如下:
    最新 macOS Sierra 10.12.3 安装CocoaPods及使用详解

    CocoaPods的安装以及遇到的坑

    MAC上安装cocoapods方法及使用简介

    相关文章

      网友评论

          本文标题:最新 macOS 安装CocoaPods及使用详解

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