title: Two Objective C files with the same name in different targets, used by Swift class
body: <p>The situation is as followed: I have two targets (A and B) and they contain a class with the same name but different implementations (let's call these classes Hello.m and Hello.h). So:</p>
  
  <p>Target A contains Hello.m and Hello.h<br>
  Target B contains Hello.m and Hello.h (different implementation with different properties)</p>
  
  <p>Now I have a swift class called Consumer.swift only in target B. This class would need to use the Hello.m and Hello.h of target B. But somehow Xcode tries to include the class / header of target A, which leads to the following error:
  Value of type 'Hello' has no member 'propertyOnlyAvailableInTargetB'</p>
  
  <p>Has anyone an idea how I can tell the swift class to use the right class / header from the right target? Why would Xcode like to use the Hello.m and Hello.h of target A instead of B?</p>
  
  <p>I tried to set the "Header Search Paths" in the Build Settings to the specific folders in the project and I set the "Use Header Maps" to false. After setting this flag I get the error "Failed to import bridging header...Bridging-Header.h", since the folder structure looks like this:</p>
  
  <p>Project
      <ul>
          FolderA<br/>
      <ul>
      Hello.m<br/>
      Hello.h<br/>
      Bridging-Header.h<br/>
      </ul><br/>
      FolderB
      <ul>
      Hello.m<br/>
      Hello.h<br/>
      Consumer.swift<br/>
      </ul>
      </ul></p>
  
  <p>Any answers would be appreciated :) Thx!</p>