Carthage: How to get the very latest version of a given repository?

前端 未结 4 1646
醉酒成梦
醉酒成梦 2021-02-01 15:38

The Cartfile documentation makes the assertion:

If no version requirement is given, any version of the dependency is allowed.

with t

4条回答
  •  太阳男子
    2021-02-01 16:30

    The documentation states

    Carthage supports several kinds of version requirements:

    • >= 1.0 for “at least version 1.0”
    • ~> 1.0 for “compatible with version 1.0”
    • == 1.0 for “exactly version 1.0”
    • "some-branch-or-tag-or-commit" for a specific Git object (anything allowed by git rev-parse)

    so I believe

    github "jspahrsummers/xcconfigs" "HEAD"
    

    should work as expected, since "HEAD" is a valid argument for git rev-parse

    Alternatively

    github "jspahrsummers/xcconfigs" "master"
    

    or any other branch

提交回复
热议问题