title: Adding Swift files to test target not fixing unit tests
body: <p>I have looked at a lot of blogs and tried many things to get my Swift unit tests to work in Xcode 6.0.1 (or 6.1 for that matter). I'm trying to access classes in my app's target so I wrote this line:</p>
  
  <pre><code>var vc: LoginViewController!
  </code></pre>
  
  <p>Of course, I get the "Use of undeclared type 'LoginViewController'" error.</p>
  
  <p>I then try to add <code>LoginViewController</code> to my test target, but then I get "use of unresolved identifier" errors on other classes in my project. So I try to add those classes to my test target, but I end up with a seemingly endless source of errors like the screenshot below:</p>
  
  <p><img src="https://i.stack.imgur.com/VTTJ7.png" alt="xcode swift errors"></p>
  
  <p>Declaring all my classes as public, causes other errors and seems like bad practice. Is there anyway to include unit tests in a Swift project that relies on many frameworks and classes? I simply want to start with something almost exactly like the code in this <a href="http://www.iosmike.com/2014/08/unit-testing-viewcontrollers-in-swift.html">article</a>.</p>