Alamofire: Can't install Alamofire 4 with Cocoa pods

Created on 29 Sep 2016  路  5Comments  路  Source: Alamofire/Alamofire

pod 'Alamofire',
:git => 'https://github.com/Alamofire/Alamofire.git',
:branch => 'swift3'

Pre-downloading: Alamofire from https://github.com/Alamofire/Alamofire.git, branch swift3

[!] Error installing Alamofire
[!] /usr/bin/git clone https://github.com/Alamofire/Alamofire.git /var/folders/9b/nfkhxvps0lnfv842q42k90mm0000gp/T/d20160929-6166-htbeyy --template= --single-branch --depth 1 --branch swift3

Cloning into '/var/folders/9b/nfkhxvps0lnfv842q42k90mm0000gp/T/d20160929-6166-htbeyy'...
warning: Could not find remote branch swift3 to clone.
fatal: Remote branch swift3 not found in upstream origin

pod 'Alamofire', '~> 4.0'
[!] Unable to satisfy the following requirements:

  • Alamofire (~> 4.0) required by Podfile

Specs satisfying the Alamofire (~> 4.0) dependency were found, but they required a higher minimum deployment target.

I used Coacoapods newest version + Xcode 8.

What can I do now?

cocoapods support

Most helpful comment

One guy has ported the 4.0.0 version to the iOS 8. Though it's not official worth the try since we are being forced by our managers to support iOS 8.

pod 'Alamofire', :git => 'https://github.com/Homely/Alamofire.git', :branch => 'ios8'

All 5 comments

Please try add
platform :ios, '9.0'
to your Podfile

It's okie for me now. Thank you!

There is no branch name called swift3?

Alamofire 4.0.0+ is released on Swift 3. The swift3 branch has been deleted.

One guy has ported the 4.0.0 version to the iOS 8. Though it's not official worth the try since we are being forced by our managers to support iOS 8.

pod 'Alamofire', :git => 'https://github.com/Homely/Alamofire.git', :branch => 'ios8'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tulleb picture Tulleb  路  3Comments

matthijsotterloo picture matthijsotterloo  路  3Comments

hengchengfei picture hengchengfei  路  3Comments

borek2 picture borek2  路  3Comments

shivang2902 picture shivang2902  路  3Comments