carthage

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


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"

Solution

  • 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