Alamofire.request( .GET, "http://localhost:9080/feed", parameters: [:]) .responseJSON { response in guard response.result.isSuccess else { print("Error while fetching: (response.result.error)") return } Error: Code = -1004 "Could not connect to the server."
I launch the server on Swift, the server is running, the browser gives test data along the path " http: // localhost: 9080 / feed "
AllowArbitraryLoads = Yes response.result.value = nil