SKView警告日志 [英] SKView warning logs
问题描述
在运行我的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]
2019-11-18 21:58:57.631912+0000 PixelBattles[2812:1215803]
SKView:ignoreRenderSyncInLayoutSubviews为否.在没有处理程序的情况下调用_renderSynchronouslyForTime
SKView: ignoreRenderSyncInLayoutSubviews is NO. Call _renderSynchronouslyForTime without handler
我收到该日志时做错了什么,我应该为此担心吗?可能是错误吗?
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!
推荐答案
这是Apple对这个问题的回应:
This is Apple's response to this issue:
嗨!您实际上不需要修复该问题.那是一条日志消息 在SpriteKit框架中被错误遗弃.它已被删除,不会 不再出现在将来的SpriteKit版本中.谢谢!
Hi! You don't really need to fix that. That's a log message that was left by mistake in SpriteKit framework. It was removed and will no longer appear in the future SpriteKit versions. Thanks!
这篇关于SKView警告日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!