I am using spritekit with swift (ios8, xcode 6). When I use the physicsbody constructor self.physicsBody = SKPhysicsBody(texture: myTexture, size: myTexture.size())
, it fails every time, with the following error:
<Error>: CGBitmapContextCreate: unsupported parameter combination:
8 integer bits/component; 32 bits/pixel;
3-component color space;
kCGImageAlphaPremultipliedLast; 127 bytes/row.
However, when I switch back to the physicsbody constructor like 'SKPhysicsBody(rectangleOfSize: ...)' it works fine... I want to use the texture-based physics body, however. Why is this error happening and how do I fix it?