title: Conditional compiling of Objective-C in a Swift project
body: <p>I have an Objective-C category that I've been using for a while for both iOS and OSX projects and I want to use it in a Swift project as-is...until I have the time to translate it to Swift.</p>
  
  <p>Here's the top of my category's .h file:</p>
  
  <pre><code>#if TARGET_OS_IPHONE
  #import &lt;UIKit/UIKit.h&gt;
  #else
  #import &lt;Cocoa/Cocoa.h&gt;
  #endif
  </code></pre>
  
  <p>I've included it in the bridging header, but when I build the project for iOS, I get an error saying that it can't find the file Cocoa/Cocoa.h. </p>
  
  <p>Why is it even looking for it? Doesn't the conditional compile still work even in a Swift project? It's still compiling an Objective-C file.</p>
  
  <p>Thanks.</p>