How fix error message "Unable to load custom class 'GameScene' from module '(null)'" Xcode in console

Viewed 1006

when I work in Xcode with SpriteKit and use simulator or even real iPhone its always show this message beneath, the app not crash but still this message appear even if I open new fresh SpritKit fill.

Unable to load custom class 'GameScene' from module '(null)'

2 Answers

In Xcode project, go to GameScene.sks and in Custom Class Inspector make sure the Custom Class name is "GameScene" and Module is empty.

enter image description here

My issue was linked to a quote (') in the project name, removing it fixed the problem

Related