Carthage requires git 2.3.0 or later

I am using a chart library and trying to run a demo. Before starting, I have to install the dependencies using Carthage. I go to the folder with the project folders and type in the terminal:

carthage update

I got the following error: -

Carthage requires git 2.3.0 or later.

How to establish the decency of Carthage and run the aforementioned demo.

enter image description here

+6
source share
4 answers

Select Command Line Tools

Xcode -> Preferences -> Locations -> Command Line Tools
+13
source

Not sure if this will help, but I ran into the same problem and found that xcodebuild was using another Xcode I installed.

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

, : Carthage Swift

+4

, XCode . , :

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

:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer 
+2

, git.

brew install git

"Target/usr/local/bin/git . ". :

brew link --overwrite git

. , - .

+1

Source: https://habr.com/ru/post/1655587/


All Articles