最新消息:20210917 已从crifan.com换到crifan.org

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

Swift crifan 2786浏览 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,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
101 queries in 0.188 seconds, using 23.31MB memory