iOS- 网络错误,NSURLErrorDomain Code=-1009"The Internet connection appears to be offline."

当时在调试友盟,出现错误:

- register error [Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={NSUnderlyingError=0x174651a30 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "The Internet connection appears to be offline." UserInfo={NSErrorFailingURLStringKey=https://msg.umengcloud.com/launch, NSErrorFailingURLKey=https://msg.umengcloud.com/launch, _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1, NSLocalizedDescription=The Internet connection appears to be offline.}}, NSErrorFailingURLStringKey=https://msg.umengcloud.com/launch, NSErrorFailingURLKey=https://msg.umengcloud.com/launch, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=50, NSLocalizedDescription=The Internet connection appears to be offline.}]

说是网络错误,发现 app 连接不了网络,之前 app 一直可以连接网络的,后来找到一篇文章:http://www.cnblogs.com/sdsunjing/p/6068984.html ,说 ios 10 有 bug, 后来我把手机上:设置--无线局域网/蜂窝移动网络--使用无线局域网于蜂窝移动的应用--对应 app 的网络连接关闭,再打开,就可以了

你可能感兴趣的:(iOS- 网络错误,NSURLErrorDomain Code=-1009"The Internet connection appears to be offline.")