When running Carthage, you can receive this warning:
Please update to the latest Carthage version
It will be helpful if this warning also explains HOW to update to the latest Carthage.
Well, how did you install it in the first place?
I would update it following the same procedure
I don't remember. But if that is the answer then I propose changing
Please update to the latest Carthage version
to
Please update to the latest Carthage version. To do this you will need to remember how you originally installed Carthage.
The install procedures are listed here https://github.com/Carthage/Carthage#installing-carthage if you used a system package manager like homebrew or macports you'll have to refer to their specific documentation on how to update a package.
For example if you used homebrew you can run brew update carthage.
Thanks for suggesting the change to the update notice.
This command updates brew itself, and does not take formula names.
the command should be brew upgrade carthage
If brew upgrade carthage command is not working for you, then it means you have not used homebrew during Carthage installation.
So to upgrade using homebrew, use the following steps:
Use which carthage command.
It will show the current path of carthage
In my case it is "/usr/local/bin/carthage".
If you have installed through .pkg then Use these commands to delete every trace of carthage
rm -rf /usr/local/bin/carthage
sudo rm -rf /Library/Frameworks/CarthageKit.framework
Then install fresh carthage
brew install carthage
As of writing this comment the current version is 0.35.0
I'm confused. When I ask carthage what version it is, it tells me 0.35 but also tells me the latest is 036
$ carthage version
Please update to the latest Carthage version: 0.36.0. You currently are on 0.35.0
0.35.0
looks like 0.36 is coming https://github.com/Carthage/Carthage/commit/499c9cf8dafe5979e761397721f319db8bbe5859
You can already get 0.36.0 from the .pkg attached to to the release or wait for brew.
Thanks @tmspzz. I see that from the source that 'the latest' is 'the latest tag in the repo', not 'the latest available via brew'.
FWIW, 0.35.1 reports its version incorrectly.
$ /usr/local/Cellar/carthage/0.35.1/bin/carthage version
Please update to the latest Carthage version: 0.36.0. You currently are on 0.35.0
0.35.0
When is a new version coming to brew? brew reports that the latest version os 0.34.0.
Most helpful comment
This command updates brew itself, and does not take formula names.
the command should be
brew upgrade carthage