I get this from a request in my app, but i go to my url in safari and the url works fine.
this is my request
Alamofire.request("my url").responseJSON { response in
print(response)
if let JSON = response.result.value {
print("JSON: \(JSON)")
}
}
and this is the response
Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x60800024dce0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=54, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey= my url, NSErrorFailingURLKey=my url, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=54, NSLocalizedDescription=The network connection was lost.}
I trying reset the simulator, reset my Mac, and all this tricks for bugs. but nothing solve my problem. any help?
Allow Arbitrary Loads
property set toYES
? – Mo Abdul-Hameed