Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CUICatalog: Invalid Request: requesting subtype without specifying idiom

Tags:

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?

like image 466
mhillsman Avatar asked Nov 13 '15 05:11

mhillsman


1 Answers

I think that it's just a left over debug message that hasn't been cleaned up in iPod/iPhone devices.

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") 

I do not get the message.

Also, any sprites created in an .sks file will display the error, as you have no opportunity (or need) to define an atlas.

like image 140
Darren Branford Avatar answered Oct 18 '22 22:10

Darren Branford