CUICatalog: Invalid Request: requesting subtype without specifying idiom

后端 未结 1 1254
孤独总比滥情好
孤独总比滥情好 2020-12-29 04:52

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

相关标签:
1条回答
  • 2020-12-29 05:01

    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.

    0 讨论(0)
提交回复
热议问题