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
why not manually go to pod directory and git clone it
http://open-source-customization.com/question/pod-install-unable-to-setting-up-cocoapods/57
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
Most helpful comment
if
'~>4.0'doesn't work , try to use this and checkpod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'master'