SKAction Not Running in iOS 11 / Xcode 9
In Xcode I use SKReferenceNodes to save create the same objects over and over. This has worked great until Xcode 9.
After upgrading, sprites in my reference files that had an action attached – either in the scene editor or in a corresponding class would not run their actions.
I thought I had gone crazy, however it turns out that in certain situations, sprites now have their isPaused property set to true! I never thought to look for this but thankfully someone on the developer forum did.
This was a problem that was driving my crazy and its pretty easy to fix in my case, but why make the sprite paused by default. I filed a bug report with Apple.
Here’s the link to the developer forum thread:
https://forums.developer.apple.com/thread/84719
My thread on Twitter:
In #SpriteKit if I create reference node containing a sprite & add an action to the sprite, the action won’t run in another scene #xcode 9
— Lunapip (@Lunapip) September 23, 2017