I came across some unexpected behavior when using the SpriteKit scene editor and am wondering if anyone else has a problem.
I created a sprite in the scene and added Actions to move it using the scene editor. Actions play fine when I click the animation button in the editor. I add a link to this scene to the main scene using the SKReferenceNode object in the scene editor, and the sprite appears on the main scene, as expected in the editor. However, when I create and run the application, a sprite appears, but no action is taken. I tried this on the beta version of Xcode 9.2 and got the same result. If I load a sprite scene directly from the main view controller, all actions are performed as expected, so it seems that the problem is with the specified nodes. I also found that if I redefine didMove (on :) in the main scene the swift class and put a breakpoint in it, then just click "continue" when it gets to the breakpoint, all actions will play on the sprite sprites, as expected . If I disable the breakpoint, no actions will be performed on the reference sprites. (So, my workaround is to just use a breakpoint and click the Continue button).
Another interesting point. I opened a sample project created with an older version of Xcode, and sprites sprites performed their actions in order. I copied this old SKS file to my project, and Actions worked fine ... until I edited the SKS file (another action was added), then they no longer worked.
source share