title: Export Swift framework for the usage in Objective-C
body: <p>I am creating a framework using Swift to be used in my college's Objective-C Project. I have created a new project and have chosen <strong>Cocoa Touch Framework</strong> and named it <strong>printFramework</strong>. I have added a Swift file into the project with the code below:</p>
  
  <pre><code>import Foundation
  
  
  @objc public class printClass : NSObject {
      @objc public override init() {
          print("My name is init")
      }
  
      @objc public func printMe(){
          print("Hello Wrold")
      }
  }
  </code></pre>
  
  <p>I build the above code (Build Success) with the target <strong>Generic iOS Device</strong>, and now I have a briefcase (framework) file and under Product, 
  and I create another <strong>Single View Application</strong> project with language Objective-C named <strong>prinFrameTest</strong>. I copied the framework into the project and in <strong>General</strong> tab under <strong>Linked Frameworks and Libraries</strong>, I have my <strong>printFramwork</strong> and above that in <strong>Embedded Binaries</strong> I have added my <strong>printFramework</strong>.</p>
  
  <p>In my <code>ViewController.m</code> I have the following code:</p>
  
  <pre><code>#import "ViewController.h"
  @import printFramework;
  #import &lt;printFramework/printFramework-Swift.h&gt;
  
  @interface ViewController ()
  
  @end
  
  @implementation ViewController
  
  - (void)viewDidLoad {
      [super viewDidLoad];
      printClass *pr;
      [pr printMe];
  }
  
  @end
  </code></pre>
  
  <p>I build and run this (it ran successfully), Simulator opens and but the code is not working (means it does not print anything in the log).</p>
  
  <p>What is going wrong?</p>