[英]Could not determine current country code: Error Domain=NSURLErrorDomain Code=-1005 “The network connection was lost.”
Can't load map in one of my view controllers. 无法在我的一个视图控制器中加载地图。 I checked the other stackoverflow post: NSURLConnection GET request returns -1005, "the network connection was lost" but it isnt working for me. 我检查了另一个stackoverflow帖子: NSURLConnection GET请求返回-1005,“网络连接丢失”,但它对我不起作用。
Here is an image of my view controller and error message: 这是我的视图控制器和错误消息的图像:
I've tried resetting content settings, relaunching simulator and different wifi connections. 我尝试过重置内容设置,重新启动模拟器和其他wifi连接。
Do you guys have any other suggestions? 你们还有其他建议吗?
"The network connection was lost" means exactly that. “网络连接丢失”就是这个意思。 Your device lost its network connection. 您的设备失去了网络连接。 Can happen with any device, any time. 可以在任何时间,任何设备上发生。 Your app should handle this gracefully. 您的应用应该可以正常处理。
Looking at your own reply: So if a customer runs into this problem, you are going to visit them and set up a proxy for them? 查看您自己的答复:因此,如果客户遇到此问题,您将去拜访他们并为他们建立代理吗?
Restart your simulator and run it. 重新启动模拟器并运行它。 Then it will works fine. 然后它将正常工作。
使用Charles或设置安全Web代理(HTTPS)可以为我解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.