[Solved] Why is my custom Swift class not transferring to my GameScene [closed]


This looks like target membership issue.

I suggest that look at the target membership of Player.swift and make sure that the check mark next to your project name is there.

How to verify target membership

  1. Click on the file
  2. Open the Utility Pane (The right pane on Xcode) (option + command + 0)
  3. Navigate to the File Inspector in the Utility Pane (The file icon)
  4. Target membership and file path should be listed

enter image description here

0

solved Why is my custom Swift class not transferring to my GameScene [closed]