iOS 8 & Xcode 6:解决The network connection was lost.

最近,和几位大大一起,仿写一个客户端。代码没作变动,一直工作正常。刚才从休眠中继续调试,输出如下错误:

2014-11-21 21:37:02.430 zhihudaily[2140:212751] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fe86a65d8e0 {NSUnderlyingError=0x7fe86a522690 "The network connection was lost.", NSErrorFailingURLStringKey=http://news-at.zhihu.com/api/3/stories/latest?client=0, NSErrorFailingURLKey=http://news-at.zhihu.com/api/3/stories/latest?client=0, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.}

重启模拟器,程序可正常运行。

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。