How to update just one library from the Cartfile with Carthage?

Evgenii picture Evgenii · Jun 3, 2015 · Viewed 38.6k times · Source

My Cartfile has many libraries. When I do carthage update it goes through all the libraries. That can take very long time.

Is there a way to update just a single library with carthage? Something like this? (this will not work)

carthage update "evgenyneu/moa"

Answer

Alex Salom picture Alex Salom · Apr 5, 2016

From 0.12 version build, checkout, and update take an optional space separated list of dependencies

For a Cartfile like the following

github "Alamofire/Alamofire"
github "ReactiveX/RxSwift"

You could choose to update one dependency

carthage update Alamofire

or multiple dependencies

carthage update Alamofire RxSwift

If you need to add flags, add them last:

carthage update Alamofire --platform iOS