title: Building reusable libraries with Swift that use bridging headers
body: <p>I'm trying to get the hang of Swift, and am beginning by just doing a dumb port of a few applications I've written.</p>
  
  <p>These applications have some core logic in common, for which I've used a Framework target in Xcode to share this with those projects. I'm having trouble coming up with an equivalent in Swift.</p>
  
  <p>I know Swift compiles down to modules, which seems like what I want. I want a Swift module that I can share with my other projects. the major problem I seem to be having though, is that you cannot have a Framework with Swift if it also uses a bridging header starting in Beta 4, which I need to call some APIs (like Security.framework) that don't have Swift bindings. The compiler (Beta 5) fails with this error message:</p>
  
  <blockquote>
    <p><code>&lt;unknown&gt;:0: error: using bridging headers with framework targets is unsupported</code></p>
  </blockquote>
  
  <p>What can I do to create a reusable Swift module that also needs to use bridging headers? Alternatively, how can I use things in Security.framework without a bridging header? (Alternatively Aternatively, is there something other than a Framework I should be using to create a module that doesn't have any of these problems?)</p>