title: Obj-C CocoaPods + Swift Framework
body: <p>I'm creating a Swift framework in the latest Xcode 6 DP4. I need to internally use AFNetworking in my framework, but can't figure out a way to compile it. </p>
  
  <p>I know how to use bridging headers, but those aren't supported in Swift frameworks.</p>
  
  <hr>
  
  <p>My framework, Core.framework, looks like this:</p>
  
  <pre><code>&gt; Core.h
      #import &lt;UIKit/UIKit.h&gt;
      #import &lt;AFNetworking/AFNetworking.h&gt;
  
      //! Project version number for Core.
      FOUNDATION_EXPORT double CoreVersionNumber;
  
      //! Project version string for Core.
      FOUNDATION_EXPORT const unsigned char CoreVersionString[]; 
  
  &gt; SomeFileThatNeedsAFNetworking.swift
  </code></pre>
  
  <p>And I'm using a podfile to bring in AFNetworking. However, when I compile, I get the following error:</p>
  
  <pre><code>&lt;unknown&gt;:0: error: ~/Core/Source/Core.h:2: include of non-modular header inside framework module 'Core'
  </code></pre>
  
  <p>because of the AFNetworking import. But if I don't include that, then I get compilation errors everywhere referencing AFNetworking.</p>
  
  <p>Has anyone figured out the right combination?</p>