title: Swift framework - Objective-C header not found
body: <p>I created a small test framework in <code>Swift</code>. My purpose is to use <code>Swift</code> class in <code>Objective-C</code> class. I created a <code>Swift</code> file. And then an <code>Objective-C</code> file. I made sure that the <code>Objective-C</code> header in <em>Build Settings</em> is <strong>Test-Swift.h</strong><br>
  When I try to import Test-Swift.h in objective-C file, I get an error - </p>
  
  <blockquote>
    <p>'Test-Swift.h' file not found.</p>
  </blockquote>
  
  <p><strong>Swift class :</strong>  </p>
  
  <pre><code>import Foundation
  
  @objc class MyTest: NSObject {
      func addTest()  {
          print("test")
      }
  }  
  </code></pre>
  
  <p><strong>Objective-C class :</strong>  </p>
  
  <pre><code>#import "YourTest.h"
  #import &lt;Test/Test-Swift.h&gt;
  #import "Test-Swift.h"       // Error in this line
  
  @implementation YourTest
  
  -(void)testTest {
      // This is how I want to use the swift class
      MyTest *test = [MyTest new];
      [test addTest];
  
  }
  
  @end  
  </code></pre>
  
  <p>Framework header :  </p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  //! Project version number for Test.
  FOUNDATION_EXPORT double TestVersionNumber;
  
  //! Project version string for Test.
  FOUNDATION_EXPORT const unsigned char TestVersionString[];
  
  // In this header, you should import all the public headers of your framework using statements like #import &lt;Test/PublicHeader.h&gt;  
  </code></pre>
  
  <p>Build setting (objective-C header) :  </p>
  
  <p><a href="https://i.stack.imgur.com/gGAiL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gGAiL.png" alt="enter image description here"></a>  </p>
  
  <p>I have set <strong>Defines Module</strong> to <strong>Yes</strong></p>