Swift physicsBody:无法创建物理体(模拟器错误)

Swift physicsBody:无法创建物理体(模拟器错误),swift,xcode,sprite-kit,textures,Swift,Xcode,Sprite Kit,Textures,我经常遇到这样的错误“physicsBody:无法创建物理体”。我已经检查了导致错误的原因,这是一行代码: node.physicsBody = SKPhysicsBody(texture: node.texture!, size: node.texture!.size()) 但是,此错误仅发生在模拟器上。我的iPhone上没有这个错误 我的iPhone运行的是iOS 13.4.1,目标版本是iOS 13.4 这是个小故障吗 干杯 看起来像只虫子是的,你说得对。烦人的谢谢你!

我经常遇到这样的错误“physicsBody:无法创建物理体”。我已经检查了导致错误的原因,这是一行代码:

node.physicsBody = SKPhysicsBody(texture: node.texture!, size: node.texture!.size())
但是,此错误仅发生在模拟器上。我的iPhone上没有这个错误

我的iPhone运行的是iOS 13.4.1,目标版本是iOS 13.4

这是个小故障吗


干杯

看起来像只虫子是的,你说得对。烦人的谢谢你!