title: Adding Linked or Embedded Swift Framework: 'MyClass' is unavailable: cannot find Swift declaration for this class
body: <p>I have a Swift Cocoa Touch Framework project (we'll call it <code>MySwiftFramework</code>) that has some nifty code in it that I'd like to reference in another project/workspace.</p>
  
  <p>When attempting to reference that framework, I get the following error in the code that references the swift classes of the aforementioned framework:</p>
  
  <blockquote>
    <p>'MySwiftClass' is unavailable: cannot find Swift declaration for this class</p>
  </blockquote>
  
  <p>I've checked the auto-generated file: <code>MySwiftFramework.framework/Headers/MySwiftFramework-Swift.h</code> and it includes the auto-generated headers for the swift classes in <code>MySwiftFramework</code>:</p>
  
  <pre><code>SWIFT_CLASS("_TtC16MySwiftFramework12MySwiftClass")
  @interface MySwiftClass : NSObject
  @property (nonatomic, copy) NSString * coolThingName;
  - (instancetype)init OBJC_DESIGNATED_INITIALIZER;
  @end
  </code></pre>
  
  <p>The only way I can get it to work is if I drag <code>MySwiftFramework</code> into the workspace I'm trying to reference it with. Then it will compile, but when I try to archive the app, it archives the project as "Xcode Generic Archive" instead of an "iOS App Archive".</p>
  
  <p>There's got to be a way to reference a swift framework by just embedding the <code>MySwiftFramework.framework</code> file.</p>
  
  <p>Does anyone know what might be causing this error?</p>