I noticed a weird behavior in my Swift project and reproduced it on a empty SpriteKit Project that way:
class GameScene: SKScene {
override func didMoveToView(view: SKView) {
let sprite = SKSpriteNode(imageNamed:"Spaceship")
self.addChild(sprite)
//sprite.removeFromParent()
let sprite2 = SKSpriteNode(imageNamed:"Spaceship")
self.addChild(sprite2)
sprite2.removeFromParent()
}
}
It crash before the app start and all I can see is this :
My config is xCode6-Beta6, iPad Mini Retina with iOS8-Beta5 and OSX 10.9.4.
I also reproduced the bug in the simulators; with xCode6-Beta5; and moving the code in touchesBegan
method
Uncommenting the line sprite.removeFromParent()
make the bug disappear.