Alamofire: Error installing Alamofire

Created on 20 Sep 2016  路  9Comments  路  Source: Alamofire/Alamofire

Ater pod update I have this:

[!] /usr/local/bin/git clone https://github.com/Alamofire/Alamofire.git /var/folders/cx/y7x6j6cj2h588krpgxb36jsh0000gn/T/d20160920-4474-1eylyse --template= --single-branch --depth 1 --branch swift3

Cloning into '/var/folders/cx/y7x6j6cj2h588krpgxb36jsh0000gn/T/d20160920-4474-1eylyse'...
warning: Could not find remote branch swift3 to clone.
fatal: Remote branch swift3 not found in upstream origin

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

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end

cocoapods support

Most helpful comment

if '~>4.0' doesn't work , try to use this and check

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

All 9 comments

There's no longer a swift3 branch. Instead you want to use:

pod, 'Alamofire', '~> 4.0'

Cheers. 馃嵒

if '~>4.0' doesn't work , try to use this and check

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

@hemanthpeela09 Looks like you should run pod repo update for fetching new podspecs.

:branch => 'master' worked for me

:branch => 'master' worked for me

:branch => 'master' worked for me

:branch => 'master' worked for me

pod 'Alamofire', '~> 4.0'
this worked for me

Was this page helpful?
0 / 5 - 0 ratings