最新消息:服务器现已从linode换到fzhost.net,且主题已从retina 0.2换为大前端D8

[无需解决]swift出错:The operation couldn’t be completed,kCFErrorDomainCFNetwork error 2

Swift crifan 30浏览 0评论
Reconnect: webSocket!.connect()
websocketDidDisconnect error=Optional("The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)")
Reconnect: webSocket!.connect()
websocketDidDisconnect error=Optional("The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)")
Reconnect: webSocket!.connect()

kCFErrorDomainCFNetwork 2 The operation couldn’t be completed. · Issue #56 · owntracks/ios · GitHub

“That is indeed a temporary DNS error which results from a network issue on the device; nothing (much) to be worried about .”

CFNetwork Error Codes Reference

“enum CFNetworkErrors {

   kCFHostErrorHostNotFound      = 1,

   kCFHostErrorUnknown           = 2,

kCFHostErrorUnknown

An unknown error occurred (a name server failure, for example). For additional information, you can query the kCFGetAddrInfoFailureKey key to obtain the value returned by getaddrinfo and look up the value in /usr/include/netdb.h.

Available in OS X v10.5 and later.”

ios – Server Authentication in Swift 2.0 & XCode 7 broken – Stack Overflow

好像是此处网络有点问题,暂时不用理会。

转载请注明:在路上 » [无需解决]swift出错:The operation couldn’t be completed,kCFErrorDomainCFNetwork error 2

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
57 queries in 0.589 seconds, using 12.84MB memory