title: Swift Bridging Header - Use of undeclared type 'FMDatabase' error
body: <p>I have looked at all the other posts with the same error (use of undeclared type) but still can’t figure out what is wrong with my project.</p>
  
  <p>The difference with the other cases is that I can successfully use the FMDatabase in AppDelegate and ViewController classes but not from another class I've created, though in the same project as the AppDelegate and ViewController classes.</p>
  
  <p>And by "successfully use", I mean I can access the database and tables in it.</p>
  
  <p>Also note that I didn’t have to import anything to use FMDatabase in AppDelegate or ViewController.</p>
  
  <p>So far what I have done (Xcode. 6.4 Swift 1.2):</p>
  
  <ol>
  <li><p>Created a single view swift project.</p></li>
  <li><p>Installed FMDB using cocoapods (<a href="https://cocoapods.org/?q=fmdb" rel="nofollow noreferrer">https://cocoapods.org/?q=fmdb</a>)</p></li>
  <li><p>Created a bridging header for FMDB</p></li>
  </ol>
  
  <p>I can successfully declare and use FMDatabase from the AppDelegate.swift and ViewController.swift classes.</p>
  
  <p>AppDelegate.swift</p>
  
  <pre><code>@UIApplicationMain
  class AppDelegate: UIResponder, UIApplicationDelegate {
  
      var window: UIWindow?
  
      var database: FMDatabase? // OK
      ...
  </code></pre>
  
  <p>ViewController.swift</p>
  
  <pre><code>class ViewController: UIViewController {
  
      var database: FMDatabase? // OK
      ...
  </code></pre>
  
  <p>In DBUtil.swift though I’m getting the “Use of undeclared type ‘FMDatabase’” error.</p>
  
  <p>DBUtil.swift</p>
  
  <pre><code>class DBUtil {
  
      var database: FMDatabase? // Error: "Use of undeclared type 'FMDatabase'
  
  }
  </code></pre>
  
  <p>A reproducer is available at <a href="https://JackG@bitbucket.org/JackG/swiftbridgingheader.git" rel="nofollow noreferrer">Swift Bridging Header</a>.</p>
  
  <p>For any hints or ideas, thank you in advance.</p>