cocoapods报错问题You need at least git version 1.8.5 to use CocoaPods

1.报错:You need at least git version 1.8.5 to use CocoaPods

    使用命令查看已安装cocoapods的版本

出现报错:

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

有一种可能是cocoapods安装成功了,但是链接Xcode的版本过低,所以需要更新Xcode。或者你电脑安装了多个版本的Xcode,就需要修改链接Xcode路径,改成链接电脑比较高版本的Xcode。

修改链接命令是:

sudo xcode-select -switch/Applications/Xcode.app/Contents/Developer

你可能感兴趣的:(cocoapods报错问题You need at least git version 1.8.5 to use CocoaPods)