I created a new Swift project and made a couple of changes according to this tutorial as follows:
GameViewController.swift
as shown in the tutorial.GameScene.swift
as shown in the tutorial.NOTE: I am not listing the source code here verbatim as I believe it has no part in this error, but I'll gladly do so if anyone thinks otherwise.
Then I should be able to just compile and run the project to load a background image. Instead, I get the following error message during compilation.
I noticed there are some variations of this kind of error on SO, and I tried the following suggestions with no success:
What else can I do to get past the error? More importantly, perhaps, what's causing this error in the first place?
Looks like you chose SceneKit when creating your project from the template, instead of SpriteKit as the tutorial specifies.