title: Unable to use both Swift and Obj-C libs with Cocoapods
body: <p>I have just started a new Swift project and I would like to use different libraries. In particular, I would like to use Realm.io, an Obj-C library. But, I would also like to use pure Swift libraries such as Alamofire or Dollar.</p>
  
  <p>I use Cocoapods for managing my dependencies. I use the latest version (0.37.0) and the new <code>use_frameworks!</code> flag. <code>pod install</code> is successful anytime.</p>
  
  <p>Unfortunately, when I try to build my project I get two errors (for my main target):</p>
  
  <ul>
  <li><code>Umbrella header Realm.h not found</code> from <code>module.modulemap</code></li>
  <li><code>Could not build Objective-C module Realm</code> from any file using <code>import Realm</code></li>
  </ul>
  
  <p>Other imports work fine.</p>
  
  <p>I have noticed the following: if I remove pure Swift libs and <code>use_frameworks</code>, everything works fine. I am aware about <a href="https://github.com/CocoaPods/guides.cocoapods.org/issues/53">this current issue from Cocoapods</a>. However, it should not be a problem for Realm asks developers to use that flag.</p>
  
  <p>Here is my Podfile:</p>
  
  <pre><code>platform :ios, '8.0'
  use_frameworks!
  
  target 'rothrock' do
    pod 'Realm'
    pod 'Cent'
    pod 'SwiftyJSON'
    pod 'Alamofire'
  end
  
  target 'rothrockTests', :exclusive =&gt; true do
  end
  </code></pre>
  
  <p>I use no bridging header. Should I?</p>
  
  <p>Any idea or workaround?</p>