CUICatalog:无效请求:请求子类型而不指定习语 [英] CUICatalog: Invalid Request: requesting subtype without specifying idiom

查看:120
本文介绍了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:无效请求:请求子类型而不指定习语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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