美文网首页
cocoapods在安装第三方时候出错:You need at

cocoapods在安装第三方时候出错:You need at

作者: DSA碼侬 | 来源:发表于2018-03-21 09:34 被阅读8次

    Swift使用CocoaPods,需要安装第三方时候:pod install --no-repo-update提示如下错误:

     [!] You need at least git version 1.8.5 to use CocoaPods (Pod::Informative)
    

    最后才知道是我的xcode.app挪动了位置,使CocoaPods连接不到正确的xcode.app位置。

    解决办法:
    1: 打开终端
    2:执行命令

     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    
     其中:sudo xcode-select -switch (Xcode.app应用所在的文件路径)/Contents/Developer

    相关文章

      网友评论

          本文标题:cocoapods在安装第三方时候出错:You need at

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