Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install Alamofire 4 with Cocoa pods #1639

Closed
lethianqt94 opened this issue Sep 29, 2016 · 5 comments
Closed

Can't install Alamofire 4 with Cocoa pods #1639

lethianqt94 opened this issue Sep 29, 2016 · 5 comments
Assignees

Comments

@lethianqt94
Copy link

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?

@thanhtrdang
Copy link

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

@lethianqt94
Copy link
Author

It's okie for me now. Thank you!

@guangLess
Copy link

There is no branch name called swift3?

@cnoon
Copy link
Member

cnoon commented Oct 1, 2016

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

@cnoon cnoon closed this as completed Oct 1, 2016
@cnoon cnoon self-assigned this Oct 1, 2016
@mayooresan
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants