Removing SCNNode nodes from scene.rootNode is causing a crash, in SceneKit Removing SCNNode nodes from scene.rootNode is causing a crash, in SceneKit ios ios

Removing SCNNode nodes from scene.rootNode is causing a crash, in SceneKit


When you use SCNAction.removeFromParentNode() you aren't removing the node, you have to remove the node it's self. If you remove the path or action you are essentially make a value nil so when the path or action is called there is now a nil value and it crashes.