title: Swift - Import my swift class
body: <p>This question is asked several times, but I can't find the right solution for my problem. I'm trying to import my <code>Player.swift</code> class in my <code>MainScene.swift</code> (I've used Cocos2D - SpriteBuilder to setup the project; Now using Xcode).</p>
  
  <p>This is my folder structure:</p>
  
  <p><a href="https://i.stack.imgur.com/3xiE0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3xiE0.png" alt="enter image description here"></a></p>
  
  <p>I've tried to use <code>import Player;</code> and <code>import Player.swift;</code>, but when I tried I got this error: <strong>No such module 'Player.swift'</strong></p>
  
  <p>How do I import it correctly?</p>
  
  <p>Thanks!</p>
  
  <p>By the way, I'm a beginner in Swift, so don't expect that I know all of the terms</p>