title: Xcode does not find Swift bridging header file in some files
body: <p>I do have a problem in my iOs application with Xcode. It has been coded in Objective-C, and now I am working on migrating files in Swift, one after another. The code is shared between team members with a versioning system (git).</p>
  <p>I started with the core classes and I proceed like this :</p>
  <ul>
  <li>I write the new class in a Swift file, ex. MyClass.swift (with <code>@objc</code> prefix keyword)</li>
  <li>I replace <code>#import &quot;MyClass.h&quot;</code> by <code>@class MyClass;</code> in header files</li>
  <li>I add <code>#import &quot;MyProject-Swift.h&quot;</code> in implementation files (.m) needing it</li>
  <li>I delete MyClass.h and MyClass.m files</li>
  <li>I clean and build the project</li>
  </ul>
  <p>This process has worked several times, but for some reasons some <code>#import &quot;MyProject-Swift.h&quot;</code> do not work, and I get the error : <strong>'MyProject-Swift.h' file not found</strong>.</p>
  <p>According to the different files causing the problem, sometimes, Ctrl+Click will open the &quot;MyProject-Swift.h&quot; file, sometimes not (no matter of the &quot;not found error&quot;).</p>
  <p>But the file exists and the translated Swift code is present inside it.</p>
  <p>Another thing really weird, I tried to re-create new .h and .m files from  those using <code>#import &quot;MyProject-Swift.h&quot;</code> stuff and having the problem, and after that it works (sometimes not, and I get other errors) !</p>
  <p>As it works in some cases, I really don't get why it is causing problems for other cases. Of course I searched among dozens of topics but did not find anyone with the same problem.</p>
  <p>Could it be an Xcode settings issue, or because of different Xcode versions between team developers ?</p>
  <p>Any idea ?</p>
  <p>Thanks</p>
  <p><strong>Edited :</strong></p>
  <p>I complete the issue description with another point of view.</p>
  <p>I do have the project in a working state : uses some of my new Swift files, it builds and runs well (some Objective-C files use Swift files).</p>
  <p>I know a certain .m file having the issue :</p>
  <ul>
  <li>I add <code>#import &quot;MyProject-Swift.h&quot;</code> at the beginning, nothing else</li>
  <li>Xcode says <strong>'MyProject-Swift.h' file not found</strong>, Ctrl+Click does not work, and the project won't build</li>
  <li>But, if I click on the button with four little squares (top left of the editor), in the displayed menu I have &quot;Includes&quot;, the &quot;MyProject-Swift.h&quot; is listed under it, and clicking on &quot;MyProject-Swift.h&quot; opens the file !</li>
  </ul>
  <p>Replacing <code>#import &quot;MyProject-Swift.h&quot;</code> by <code>#import &lt;MyProject-Swift.h&gt;</code> won't change anything.</p>
  <p>I also have this case sometimes : Ctrl+Click opens &quot;MyProject-Swift.h&quot;,  but Xcode says <strong>'MyProject-Swift.h' file not found</strong> (it won't build as well).</p>