如何修复"nw_connection_receive_internal_block_invoke" (安慰) [英] How to fix "nw_connection_receive_internal_block_invoke" (console)

查看:149
本文介绍了如何修复"nw_connection_receive_internal_block_invoke" (安慰)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Xcode中配置新的Firebase应用程序,但在控制台中反复打印"nw_connection_receive_internal_block_invoke [C1]接收答复失败,错误为'操作取消'".我该怎么做才能解决此问题?

I'm configuring a new Firebase app in Xcode, but get "nw_connection_receive_internal_block_invoke [C1] Receive reply failed with error 'Operation canceled'" printed repeatedly in the console. What should I do to fix this?

这是在Xcode 11 Beta 3中,并且由于原始文件是从旧版本的Xcode创建的,所以我尝试过一起创建一个新项目,但是即使我做了所有操作,我仍然会在控制台中反复打印此错误完成后,配置完成后将其运行一次.

This is in Xcode 11 Beta 3, and I've tried creating a new project altogether since the original was created from an older version of Xcode, yet I still get this error printed repeatedly in the console even though all I've done is run it once after configuring.

我希望在控制台中看不到任何错误,但是此错误已多次打印.

I expect to see no errors in the console, yet this error is printed many times.

推荐答案

我遇到了同样的错误.我的代码如下:

I was getting the same error. My code looked like this:

UserServices().getUserWithUID(uid: user.uid) { (user) in
    self.window?.rootViewController = MapViewController(user: user)
    self.window?.makeKeyAndVisible()
}

我为解决该问题所做的一切就是将代码更改为此:

All I did to resolve the problem was change my code to this:

let userServices = UserServices()
userServices.getUserWithUID(uid: user.uid) { (user) in
    self.window?.rootViewController = MapViewController(user: user)
    self.window?.makeKeyAndVisible()
}

并且控制台错误消失了.

and the console errors disappeared.

这篇关于如何修复"nw_connection_receive_internal_block_invoke" (安慰)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆