Error Domain=NSURLErrorDomain Code=-1005 “The network connection was lost.” Restarting the simulator fixed the issue for me.