I am using the Xcode 8.0 GM. I created a default single-view app with my deployment target set to 9.0.
In my Podfile I\'m targeting the bleeding edge Swift 3 branch:
I was able to get it working:
update:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'PROJECT NAME HERE' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Alamofire',
:git => 'https://github.com/Alamofire/Alamofire.git',
:branch => 'swift3'
end
pod update Alamofire
It should update to 4.0.0-beta.2
There are a few changes when getting a request:
old:
Alamofire.request(URL_NAME_HERE, withMethod: .get).responseJSON { response in
//Code here.
}
new:
Alamofire.request(URL_NAME_HERE, method: .get).responseJSON { response in
//Code here.
}
Hope this helps.