I'm trying to set a maximum pod version into my 'Podfile', like AFNetworking does:
pod 'AFNetworking', '~> 2.0'
But I'm using a private repository so I also need to specify the git repository:
pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git'
The cocoapods Guide: https://guides.cocoapods.org/using/the-podfile.html examples show how to use a specific branch, tag or commit:
pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :branch => 'dev'
pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :tag => '0.7.0'
pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :commit => '082f8319af'
But no maximum pod version.
How can I combine the private git repository AND a maximum pod version?