简体   繁体   中英

when i install AFNetworking using CocoaPods i get following error when i hit “$ pod install” command

when i install AFNetworking using CocoaPods i get following error when I hit $ pod install command error is

"YOU NEED AT LEAST GIT VERSION 1.8.5 TO USE COCOAPODS"

在此处输入图片说明

您现在必须在终端中此命令

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

Check git version by executing in terminal:

git --version

You can update/install git from here: https://git-scm.com/download/mac

You have to download git version from here and Install it

https://git-scm.com/download/mac

It seems that you are facing this problem because your git version is older.

If you have installed Xcode (Xcode has the latest git built-in ), so you only need the terminal type:

sudo Xcode - select - switch/Applications /[your Xcode application name.app]

so that you can use the Xcode built-in git

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM