Code=-1005 \"The network connection was lost

强颜欢笑 提交于 2019-12-05 21:43:34

Reset content and setting of your iOS simulator, Recompile and run the app on iOS Simulator

Restarting the simulator and Clear & Build, fixed the issue for me.

Try to make Your requests synchronously (one after one)

I was having the same error message using Xcode 6.2 and running a map app (I could not load the map), resetting the simulator etc did not solve the problem, however I turned off the anti virus and web threat detector and the map loaded immediately with no error message. I then turned the anti virus and web threat detector back on and the app worked OK on the simulator and loaded the map, the error message still came up though but after 2 error messages the map loaded so it seems that the antivirus and web threat detector were treating the simulator internet connection request as a threat.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!