I have updated to Xcode8, swift3 and Alamofire 4 and am now getting an error \'extra argument \'method\' in call\' on the below line beginning \'Alamofire.request\'
In my case The problem was in the headers argument. It should be [String:String]
Plus the parameters argument should be [String:Any]
I used Alamofire 4.8.2 as the below to resolve this compilation error:
let parameters = ["key":"value","key2":1] as [String:Any]
let headers = ["header_1":"value"] as [String:String]
let encoding:URLEncoding = URLEncoding.default
Alamofire.request("base_url",
method: .post,
parameters: parameters,
encoding: encoding,
headers: headers)