title: Xcode/Swift 'filename used twice' build error
body: <p>I'm new to Swift and am struggling with an error after I have (possibly) correctly installed a 3rd party framework via CocoaPods.</p>
  
  <p>The error is as follows.</p>
  
  <pre><code>&lt;unknown&gt;:0: error: filename "MainController.swift" used twice: '/Users/myname/Desktop/ProjectName/ProjectName/Controllers/MainController.swift' and '/Users/myname/Desktop/ProjectName/ProjectName/Controllers/MainController.swift'
  &lt;unknown&gt;:0: note: filenames are used to distinguish private declarations with the same name
  Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
  </code></pre>
  
  <p>As far as I can gather from other forums and seemingly obvious is that I have to remove one of the files being used twice. However I can't see where they would be installed twice. If I remove the file from the /Controllers folder the error becomes 'file not found' etc.</p>
  
  <p>So my question is, where would these conflicting files be located and how do I safely remove one of them? Or is it more that there is only one file but it is being used twice - in which case how do I stop that?</p>
  
  <p>Many thanks.</p>
  
  <hr>
  
  <p>Ok I feel that comments are getting lost so am clarifying here to see if can trigger an answer as not been able to build and run this since yesterday.</p>
  
  <p>I now have only the swift files in the Pods->Pods/MainController folder.</p>
  
  <p>When I build I get a file not found. However the file it is looking for is in App->Controllers folder which is where I deleted it from. If I put the file in there I get the 'used twice' error.</p>
  
  <p>So how do I stop it trying to find the file in the Controllers and look for it in the Pods?</p>
  
  <p>Thanks</p>