title: Can't import Firebase framework into iOS 8 Swift-based *framework*
body: <p>I am trying to create a swift-based iOS 8 framework, and wanted to include Firebase framework into it. The <a href="https://www.firebase.com/docs/ios/quickstart.html" rel="nofollow">instructions on Firebase site</a> are only for importing Firebase into iOS <strong>apps</strong>, which uses bridging headers. Per <a href="https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_79" rel="nofollow">Apple's instructions</a>, bridging headers don't seem to apply to a Swift <strong>framework</strong> importing an Objective-C framework. I was looking at the <em>Importing External Frameworks</em> section on the Apple link. It specifies that: "When you import an external framework, make sure the Defines Module build setting for the framework you’re importing is set to Yes."</p>
  
  <p>Despite that, I tried to manually create bridging header and adjusted Swift Compiler - Code Generation Building Settings, to no avail.</p>
  
  <p>Would you know if the Firebase framework has <em>Defines Module</em> build setting set to Yes? If it does, then I'll keep digging into why I get "Use of unresolved identifier Firebase" after explicitly following Firebase instructions a few times. I am using Xcode 6 Beta 5. Any other suggestions and work-arounds are also deeply appreciated.</p>
  
  <p>Here is a work-around I tried, that did <strong>not</strong> work:</p>
  
  <p>In Xcode 6 Beta 5, I created a new Objective-C framework - SwiftFirebase. In it, I </p>
  
  <ol>
  <li>imported Firebase framework, and the other five frameworks </li>
  <li>set the -ObjC flag </li>
  <li>copied references of all the .h files in Firebase Headers folder into the new framework - SwiftFirebase. </li>
  <li>made those references from Project to Public </li>
  <li>imported  into the SwiftFirebase umbrella header </li>
  <li>ensured that Defines Modules was enabled. It was, by default. </li>
  <li>Build for Running.</li>
  </ol>
  
  <p>Created a new Swift-based Framework: TestFramework to test the above SwiftFirebase, where I</p>
  
  <ol>
  <li>Added SwiftFirebase from Debug-iphonesimulator into the new library</li>
  <li>Created a new swift class</li>
  <li>Imported SwiftFirebase</li>
  <li>Added an init method, where I put in the sample swift code from Firebase quick-start.</li>
  <li>Build for Running</li>
  <li>Got an error compiling: "Firebase/Firebase.h not found"</li>
  </ol>
  
  <p>My guess is that copying references of header files from a Firebase into another Objective-C framework and making them public is not an effective way of manipulating files. :)</p>
  
  <p>Hate to wait for Apple's fix. Anything else I could try? Did I miss something in the above steps that you could think of? Many thanks!</p>