I am using Alamofire in a Swift app I am developing. Recently whenever I try to perform a network call in the simulator iPhone5 8.1 (or any simulator 8.1) I am getting:
Optional(Error Domain=NSURLErrorDomain Code=-1005 "The operation couldn’t be completed. (NSURLErrorDomain error -1005.)" UserInfo=0x7f9d148ac2c0 {NSErrorFailingURLStringKey=https:[URL REMOVED], NSErrorFailingURLKey=https:[URL REMOVED], _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSUnderlyingError=0x7f9d1273f0a0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1005.)"})
This use to work fine up until about a day ago. The only things I have changed are the servers are now sitting on Windows/IIS EC2 instances behind a load balancer and the request is no longer a HTTP but it is HTTPS.
I had app transport configured when using HTTP but removed now everything is over HTTPS. I tried putting it back but still nothing.
I have disabled keepalive headers on IIS but I can't seem to get any connection to go through.
I have read through the comments here https://github.com/AFNetworking/AFNetworking/issues/2314 but nothing in that post works.
Help please?!?!