title: Could not build module Foundation with Objective-C class in Swift
body: <p>I'm attempting to compile a Swift app with supplementary Objective-C files loaded via the bridging header. However, it gets as far as the first line:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  </code></pre>
  
  <p>and shows the error:</p>
  
  <pre><code>Could not build the module 'Foundation'
  </code></pre>
  
  <p>I've checked that the Foundation framework is included but no luck. I've tried various combinations of deployment targets, architectures, etc too. Has anyone else experienced this in Xcode 6 beta 5?</p>