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
- Click on the file
- Open the Utility Pane (The right pane on Xcode) (option + command + 0)
- Navigate to the File Inspector in the Utility Pane (The file icon)
- Target membership and file path should be listed
0
solved Why is my custom Swift class not transferring to my GameScene [closed]