CUICatalog:无效请求:请求子类型而不指定习语

编程入门 行业动态 更新时间:2024-10-27 20:25:09
本文介绍了CUICatalog:无效请求:请求子类型而不指定习语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

每当我运行我的精灵工具包应用程序时,都会不断记录此错误。这使得调试变得非常困难,因为日志中充满了这些消息。它们似乎不会影响应用程序的运行方式,因此简单地抑制错误就足够了。任何人都知道如何解决这个问题?

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:无效请求:请求子类型而不指定习语

本文发布于:2023-10-29 07:38:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539105.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:而不   类型   习语   CUICatalog

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!