alamofire - Getting non-master branch from Cocoapods? -


i've been using swiftyjson , alamofire in project. downloaded xcode 7 beta. both swiftyjson , alamofire have separate, non-master branches swift 2. there way these via cocoapods, or need install them in traditional way?

i tried searching on cocoapods website see if these branches had been submitted separate pods, nothing came up. i'm wondering if there podfile syntax allows non-master branch.

you can specify branch repository in podfile.

example i'm using alamofire:

pod 'alamofire', :git => 'https://github.com/alamofire/alamofire.git', :branch => 'swift-2.0' 

change line(s) in podfile run pod install again.


there's alternative syntax:

pod 'alamofire', git: 'https://github.com/alamofire/alamofire.git', branch: 'swift-2.0' 

Comments