title: How to access Core Data generated Obj-C classes in test targets?
body: <p>I have a Core Data / Swift Cocoa application project in Xcode 6 (let's call the project <code>Stuff</code>). I created a Core Data entity called <code>Query</code> and used Xcode to create an <code>NSManagedObject</code> subclass for it.</p>
  
  <p>At that point, Xcode 6 offered to create the bridging header for me, as expected, and created <code>Stuff-Bridging-Header.h</code>. Once I <code>#import "Query.h"</code> in the bridging header, then my model object <code>Query</code> is available in my app target Swift code.</p>
  
  <p>How do I make that <code>Query</code> Core Data object (backed by the Xcode-generated Query.h and Query.m) available to my test target Swift code, <code>StuffTests</code>? I tried manually creating a header file <code>StuffTests-Bridging-Header.h</code> and adding <code>#import "Query.h"</code> to it, but my Swift test class is unable to resolve the <code>Query</code> class.</p>