本文介绍了SK查看警告日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当运行我的 SwiftUI &SpriteKit 应用程序,我在日志中收到以下消息:

When running my SwiftUI & SpriteKit app, I get the following messages in the logs:

2019-11-18 21:58:57.631912+0000 PixelBattles[2812:1215803]

SKView:ignoreRenderSyncInLayoutSubviews 是 NO.在没有处理程序的情况下调用 _renderSynchronouslyForTime

SKView: ignoreRenderSyncInLayoutSubviews is NO. Call _renderSynchronouslyForTime without handler

收到此日志我做错了什么,我应该担心吗?会不会是bug?

What am I doing wrong to receive this log, and should I worry about it? Could it be a bug?

难道是 SwiftUI 无法弄清楚如何为 SKView 做布局?

Could it be that SwiftUI cannot figure out how to do the layout for an SKView?

我已向 Apple 发送了一些反馈 (FB7456217).我已经删除了代码,因为我不再怀疑这与我的代码有关.我创建了一个空白的游戏项目,没有 SwiftUI,但仍然立即得到相同的警告日志.

I have sent Apple some feedback (FB7456217). I have removed the code, as I no longer suspect it is an issue to do with my code. I created a blank game project, no SwiftUI, and still got the same warning log instantly.

因此,即使使用默认项目模板,设备和模拟器的日志仍然会出现.如果我得到有用的回复,我会更新这个问题.

So even with the default project template, the log still appeared for device and simulator. I will update on this issue if I get a useful response.

我仍然没有收到任何回音 - 自从我半个多月前发布此消息以来,有人得到任何新信息吗?我仍然有这些警告!

I still haven't heard anything back - has anyone got any new information since when I posted this over half a month ago? I still have these warnings!

推荐答案

这是苹果对这个问题的回应:

This is Apple's response to this issue:

嗨!你真的不需要解决这个问题.那是一条日志消息在 SpriteKit 框架中错误留下.它已被删除并且不会不再出现在未来的 SpriteKit 版本中.谢谢!

这篇关于SK查看警告日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 18:32