每当我运行我的精灵工具包应用程序时,都会不断记录此错误。这使得调试变得非常困难,因为日志中充满了这些消息。它们似乎不会影响应用程序的运行方式,因此简单地抑制错误就足够了。任何人都知道如何解决这个问题?
Whenever I run my sprite kit app this error is logged constantly. It makes it really hard to debug because the log is filled with these messages. They don't seem to effect how the app runs, so simply suppressing the error would be sufficient. Anyone have any idea how to fix this?
推荐答案我认为这只是一个尚未清理的遗留调试消息在iPod / iPhone设备中。
I think that it's just a left over debug message that hasn't been cleaned up in iPod/iPhone devices.
在我的应用程序中,问题似乎与在xcassets文件中使用Sprite Atlases有关。
In my app, the issue seems to be related to using Sprite Atlases in an xcassets file.
如果我使用以下内容初始化精灵:
if I initialise a sprite with:
SKTexture(imageNamed: "Sprite")我收到消息;但是,使用以下内容:
I get the message; However, using the following:
SKTextureAtlas(named: "Atlas").textureNamed("Sprite")我收不到消息。
此外,任何精灵在.sks文件中创建将显示错误,因为您没有机会(或需要)定义图集。
Also, any sprites created in an .sks file will display the error, as you have no opportunity (or need) to define an atlas.
更多推荐
CUICatalog:无效请求:请求子类型而不指定习语
发布评论