调试期间,用SwiftHTTP访问网络,结果出错:
url=http://jiandao.im:8080/user?phone=xxx with params=nil response error= A server with the specified hostname could not be found |
swift http A server with the specified hostname could not be found
ios – A server with the specified hostname could not be found – Stack Overflow
ios – A server with the specified hostname could not be found in AFNetworking – Stack Overflow
感觉还是当前网络的问题
是当前网络不稳定?
“A server with the specified hostname could not be found” – Bugs and Issues – Inoreader Forum
果然是:
重启app,多试试几次,后来就好了。
转载请注明:在路上 » [已解决]swift中http访问网络出错: A server with the specified hostname could not be found