title: Module "MyApp" not found in UnitTest-Swift
body: <p>Im trying to test some Swift class (@objc class) in my legacy Objc code. I am importing "UnitTests-Swift.h" in my test classes. </p>
  
  <p>Then I get this error: </p>
  
  <blockquote>
    <p>Module "MyApp" not found in the autogenerated "UnitTests-Swift.h" </p>
  </blockquote>
  
  <p>This is whats inside the top part of the "UnitTests-Swift.h"</p>
  
  <pre><code>typedef int swift_int3  __attribute__((__ext_vector_type__(3)));
  typedef int swift_int4  __attribute__((__ext_vector_type__(4)));
  #if defined(__has_feature) &amp;&amp; __has_feature(modules)
  @import XCTest;
  @import ObjectiveC;
  @import MyApp;
  @import CoreData;
  #endif
  </code></pre>
  
  <p>I cleaned the project, checked all the relevant flags (<a href="https://stackoverflow.com/questions/32008403/no-such-module-when-using-testable-in-xcode-unit-tests">&quot;No such module&quot; when using @testable in Xcode Unit tests</a>, <a href="https://stackoverflow.com/questions/24206732/cant-use-swift-classes-inside-objective-c">Can&#39;t use Swift classes inside Objective-C</a>), removed derived data and so on.. No idea of whats happening, but I m quite sure that @import MyApp shouldnt be there..</p>
  
  <p>Can anyone help me with this?</p>