title: How to import and use Swift Pod Framework in Objective-C Project
body: <p>I've been trying to checkout CocoaPods new framework setup to get some Pods going and I'm having trouble using the Swift one's in my Objective-C project.</p>
  <p>First things first, this is CocoaPods prerelease 0.35, you can read about how to use and install it <a href="http://blog.cocoapods.org/Pod-Authors-Guide-to-CocoaPods-Frameworks/" rel="noreferrer">here</a>.</p>
  <p>Here's my current Podfile:</p>
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  
  platform :ios, '8.0'
  
  pod 'MBProgressHUD'
  pod 'SLPagingViewSwift'
  </code></pre>
  <p>MBProgressHUD is a common spinning indicator, and SLPagingViewSwift is a random project I found by typing Swift into the cocoapods search.  Here's the <code>ViewController.m</code> In my project:</p>
  <pre><code>#import &quot;ViewController.h&quot;
  
  @import SLPagingViewSwift;
  @import MBProgressHUD;
  
  @interface ViewController ()
  
  @end
  
  @implementation ViewController
  
  - (void)viewDidAppear:(BOOL)animated
  {
      [super viewDidAppear:animated];
      
      // Works just fine
      MBProgressHUD *hud = [[MBProgressHUD alloc] initWithView:self.view];
      [self.view addSubview:hud];
      [hud show:YES];
  
      // Causes Error -- Won't build
      SLPagingViewSwift *sl = [[SLPagingViewSwift alloc] init];
  }
  
  @end
  </code></pre>
  <p>Here's the <code>SLPagingViewSwift</code> declaration:</p>
  <pre><code>class SLPagingViewSwift: UIViewController, UIScrollViewDelegate {
  </code></pre>
  <p>As you can see, it inherits from <code>UIViewController</code>, so it shouldn't be a problem to just allocate it and initialize it.  If I add the file separately as just a file, the above code runs just fine.  I know it works.</p>
  <p><b> tl;dr </b></p>
  <p>How can I use a pure Swift Framework created by CocoaPods in a pure Objective-C class?</p>
  <p><b> TroubleShooting </b></p>
  <p>Mostly I've been trying various imports.  Apple recommends the <code>@import</code> style <a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_77" rel="noreferrer">here</a></p>
  <p><img src="https://i.stack.imgur.com/G1EJc.png" alt="enter image description here" /></p>
  <p>But I have been trying multiple other varieties:</p>
  <pre><code>// Compiler Error
  #import &lt;SLPagingViewSwift/SLPagingViewSwift.h&gt;
  
  // Builds Fine -- Doesn't Work
  #import &lt;SLPagingViewSwift/SLPagingViewSwift-Swift.h&gt;
  #import &quot;SLPagingViewSwift-Swift.h&quot;
  </code></pre>
  <p>I've also been trying a few other Swift libraries from time to time to see if I could make anything click.</p>
  <p>I don't see anything on the Cocoapods issues that can help this, I also didn't find anything in their blog / release stuff.</p>
  <p><b> Note </b></p>
  <p>If I add the <code>SLPagingViewSwift.swift</code> file separately to the project the old fashioned way, it works just fine.</p>