Xcode错误:调用-display没有效果 [英] Xcode error: calling -display has no effect

查看:25
本文介绍了Xcode错误:调用-display没有效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我加载我的 SpriteKit 应用程序时,它都会记录以下错误:<CAMetalLayer: 0x15f57fa70>: calling -display has no effect.,并且它不能正确显示许多对象.我已经尝试重新创建场景并删除我的代码,这两者都没有做任何事情.有一段时间我认为这可能是新的 Xcode 7 和 iOS 9 测试版的错误,但现在我已经在两者的 GM 版本上尝试过,问题仍然存在,可能不是这样.

Whenever I load my SpriteKit app, it logs this error: <CAMetalLayer: 0x15f57fa70>: calling -display has no effect., and it doesn't properly display many objects. I have tried recreating the scene and removing my code, both of which have done nothing. For a while I thought this might have been a bug with the new Xcode 7 and iOS 9 beta, but now that I have tried it with the GM version of both and the problem persists, that probably isn't the case.

推荐答案

检查所有 SKNodeszPosition.事实证明,SpriteKit 的实现发生了一些变化,SKNode 对象不再总是按照它们添加到父节点的顺序呈现.在我确定我所有的 SKNodes 都有正确的 zPosition 之后,一切都恢复正常了.

Check the zPosition of all your SKNodes. As it turns out, something changed in SpriteKit's implementation, and SKNode objects are no longer always rendered in the order they were added to their parent nodes. After I made sure all my SKNodes had the correct zPosition, everything went back to normal.

如果这没有帮助,请查看开发论坛中的这篇帖子.

If that doesn't help, check this post from the dev forums.

这篇关于Xcode错误:调用-display没有效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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