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

前端 未结 9 1042

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 s

9条回答
  •  梦谈多话
    2021-01-30 10:24

    Looks like carthage update repo-name doesn't work on Carthage 0.36.0. I solved this problem by manually updating Carthage.resolved. For example, add to a Cartfile a new dependency:

    github "konkab/AlamofireNetworkActivityLogger" ~> 3.0.0
    

    Add to a Cartfile.resolved a new dependency manually:

    github "konkab/AlamofireNetworkActivityLogger" "3.0.0"
    

    Then do carthage bootstrap to only update one dependency:

    carthage bootstrap
    

    It will use Carthage.resolved and just add one dependency.

提交回复
热议问题