title: Failed to import bridging header
body: <p>I've read a lot of questions and answers that deal with a similar issue, but I have yet to find a solution.  If anyone could shed some light, that would be wonderful.</p>
  
  <p>I created a Swift project and now I want to combine it with some Objective-C. My "failed to import bridging header" only occurs when I attempt to #import my Chartboost.h file.  So, as long as I don't have anything in my bridging header file, Xcode finds it and gives me no issue.  But once I add this:</p>
  
  <pre><code>#import &lt;Chartboost/Chartboost.h&gt;
  </code></pre>
  
  <p>I get the error along with 38 other errors saying "Swift Compiler Error - Function definition not allowed here".  </p>
  
  <p>I've correctly imported my framework.  And my framework search path is correct.  And it's only when I import the Chartboost framework.  UIKit and Foundation work fine.</p>
  
  <p>Here is what I did leading up to the issue....First, I created a new Obj-C file and then clicked "Yes when Xcode gave me a pop-up asking if it could configure a bridging header.   This created "FunFacts-Bridging-Header.h"</p>
  
  <p>Then I made sure Objective-C Bridging Header path was correct under Swift Compiler - Code Generation. </p>
  
  <p>I even put in a very specific path /Users/me/Desktop/FunFacts/FunFacts-Bridging-Header.h
  and it still says "Failed to import".</p>
  
  <p>I've also set Defines Module to "Yes" (because I heard that may help).  And my product module name is FunFacts.</p>
  
  <p>Why is FunFacts-Bridging-Header.h failing to import when I try to add #import ?</p>