Chapter 6: Labels ... getting Error

When I build and run at the bottom of page 147 I get the following error - Thread 1: Fatal Error: init(coder:) has not been implemented. Any suggestions?

Please add the init(coder:) required initializer inside your GameScene.swift class file like this:

class GameScene: SKScene {
  required init?(coder aDecoder: NSCoder) {
    super.init(coder: aDecoder)
  }
  // original code
}

Please let me know if you still have any questions or issues regarding the whole thing. Thank you! :]

This is a very good book and website. Thank you.

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.