Swift generated header with multiple targets
<p>I am having trouble generating the swift header needed to use Swift classes from ObjC, when there are multiple targets with common code.</p>

<p>I created two targets <code>My OSX App</code> and <code>My iOS App</code>. These targets share common code where an ObjC class is calling a Swift class.</p>

<p>As described in <a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html" rel="nofollow">Swift and ObjC in the same project</a> I can add <code>#import "My_iOS_App-Swift.h"</code> to my ObjC class and compile it from the <code>My iOS App</code> target.</p>

<p>However, this doesn't compile from the <code>My OSX App</code> target, as the include needs to match the module name. It is looking for <code>#import "My_OSX_App-Swift.h"</code>but the common code does not use that include.</p>

<p>What is the correct way to mix/match Swift/ObjC in code that is shared between multiple targets? I could manually change every target to use a common <code>MyApp-Swift.h</code>, but that doesn't feel right and may cause other problems.</p>