Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Carthage not using latest version installed

Tags:

carthage

I am getting this error when using Carthage:

Please update to the latest Carthage version: 0.34.0. You currently are on 0.27.0

But I already have 0.34.0 installed. If I do brew info carthage this prints:

carthage: stable 0.34.0 (bottled), HEAD
Decentralized dependency manager for Cocoa
https://github.com/Carthage/Carthage
/usr/local/Cellar/carthage/0.34.0 (8 files, 5.2MB)
  Poured from bottle on 2020-01-09 at 09:18:31
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/carthage.rb
==> Requirements
Build: xcode ✔
==> Options
--HEAD
    Install HEAD version

And if I try to upgrade brew upgrade Carthage:

Warning: Carthage 0.34.0 already installed

Any idea what is happening?

Thanks

like image 944
Joan Cardona Avatar asked Jan 09 '20 09:01

Joan Cardona


2 Answers

I had the same issue. No matter how many times I tried to uninstall, install, or upgrade Carthage, I always had 0.34.0!

I followed some command lines from this Answer. I totally doubt I had installed the package in the past but after I did this:

rm -rf /usr/local/bin/carthage
sudo rm -rf /Library/Frameworks/CarthageKit.framework
brew install carthage

I got this message:

enter image description here

So I tried:

brew upgrade carthage

And:

enter image description here

I might or not might work for you but it did for me...

like image 185
Reimond Hill Avatar answered Oct 15 '22 17:10

Reimond Hill


Try running brew uninstall carthage and then brew install carthage to see what happens. For me was an error with symlink, and there was instructions on how to fix the issue.

like image 30
StackUnderflow Avatar answered Oct 15 '22 19:10

StackUnderflow