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


the cartfile documentation makes assertion:

if no version requirement given, version of dependency allowed.

with contradictory example:

# use latest version github "jspahrsummers/xcconfigs" 

furthermore, not stated, testing, infer "latest" version of latest tag. interpretation correct? , if so, how 1 specify latest commit - have manually check , specify latest commit, or there simpler way?

the documentation states

carthage supports several kinds of version requirements:

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

so believe

github "jspahrsummers/xcconfigs" "head" 

should work expected, since "head" valid argument git rev-parse

alternatively

github "jspahrsummers/xcconfigs" "master" 

or other branch


Comments