Alamofire: Cocoapods installation error

Created on 10 Sep 2016  路  4Comments  路  Source: Alamofire/Alamofire

  • Alamofire (~> 4.0) required by Podfile

None of your spec sources contain a spec satisfying the dependency: Alamofire (~> 4.0).

You have either:

  • out-of-date source repos which you can update with pod repo update.
  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

How can I fix this? Thanks.

cocoapods support

Most helpful comment

NB : this is not a bug, more like a question that could should be asked on Stack Overflow, tagged with alamofire. Anyhow, that's an easy answer : how could Cocoapods get Alamofire 4.0 if it hasn't been released yet? It's still beta so even though the podspec says 4.0.0, there's no 4.0.0 tag yet!
TL;DR : write pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'master'

All 4 comments

Same problem here.

NB : this is not a bug, more like a question that could should be asked on Stack Overflow, tagged with alamofire. Anyhow, that's an easy answer : how could Cocoapods get Alamofire 4.0 if it hasn't been released yet? It's still beta so even though the podspec says 4.0.0, there's no 4.0.0 tag yet!
TL;DR : write pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'master'

@thebluepotato Thank you for the explanations.

Thanks @thebluepotato. 馃嵒

Was this page helpful?
0 / 5 - 0 ratings