title: Unit testing Swift 2.0, @testable import, and scheme targeting issues
body: <p>I have recently converted my app, and unit tests over to Swift 2.0.  I am using <code>@testable import AppName</code> in my Tests.swift files.</p>
  
  <p>Due to an issue with not being able to execute subclasses in multiple targets (<a href="https://stackoverflow.com/questions/31002886/class-are-being-linked-more-than-once-in-target">see here for the issue</a>), my class <code>EntityName</code> can only be of Target Membership <code>AppName</code>, and NOT <code>AppNameTests</code>.</p>
  
  <p>The problem is, once I switch over to the <code>AppNameTests</code> schema to run unit tests, code in the module <code>AppName</code> can't find the class <code>EntityName</code> and I get</p>
  
  <blockquote>
    <p>Use of undeclared type 'EntityName'</p>
  </blockquote>
  
  <p>How do I get <code>AppName</code> to compile when running tests from the <code>AppNameTests</code> scheme without that entity class not a member of the scheme?</p>