Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Carthage requires git 2.3.0 or later

I am using charts library and trying to run the demo. Before running I have to install the dependencies using Carthage. I goto project folder location and type in terminal:

carthage update

I got the below error:-

Carthage requires git 2.3.0 or later.

How to install Carthage decencies and run the above said demo.

enter image description here

like image 397
pkc456 Avatar asked Sep 23 '16 08:09

pkc456


3 Answers

Select Command Line Tools to the latest version of Xcode.

Xcode -> Preferences -> Locations -> Command Line Tools

Open Preferences shortcut : Command + comma + ,

like image 177
Lal Krishna Avatar answered Nov 17 '22 19:11

Lal Krishna


It seems like you have used another Xcode version since last time. You should set command line tool again by running the following in terminal:

sudo xcode-select -s <path to Xcode>/Contents/Developer 

for example:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer 
like image 42
Mojtaba Hosseini Avatar answered Nov 17 '22 20:11

Mojtaba Hosseini


Not sure if this will help, but I ran into the same issue and found out that xcodebuild is using a different Xcode that I installed.

so you can probably double check which Xcode you are using: xcode-select --print-path

Here is the original post that helped me solving this issue: Change Carthage Swift version

like image 4
NanDotWang Avatar answered Nov 17 '22 21:11

NanDotWang