Alamofire Not Working Properly - Tuple Issue Different number of elements
问题 Using Xcode 7.1 In the Alamofire responseJSON request I cannot put 4 parameters. Below is the code let url2 = "https://httpbin.org/get" Alamofire.request(.GET, url2).responseJSON{ request, response, JSON, error in print(JSON) } I get this error: Tuple types '(NSURLRequest?, NSHTTPURLResponse?, Result)' (aka '(Optional, Optional, Result)') and '(_, _, _, _)' have a different number of elements (3 vs. 4) If I remove the " error " parameter from responseJSON and run it...the app builds but no