title: swift failed with exit code 1 while compiling in Xcode - possibly related to Bridging-Headers
body: <p>I have an Obj-C Project I'm trying to migrate to Swift. I did succeed with various classes but recently ran into an issue I can't seem to make sense of. When I try to compile my current code base I get the following (SUPER UNHELPFUL ERROR MESSAGE)</p>
  
  <blockquote>
    <p>Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/gnXfB.png" alt="enter image description here"></p>
  
  <p>My only assumption is its somehow related to my bridging-headers but Xcode isn't giving me enough information to figure out if this is actually true.  </p>
  
  <p>I'm using <code>Cocoapods</code> to add  the <code>CorePlot</code> to my project.  I'm trying to migrate the following class to Swift:</p>
  
  <h3>Obj-C Class (ScatterPlotContainer.h)</h3>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @class CPTScatterPlot;
  
  @interface ScatterPlotContainer : NSObject
  @property (nonatomic, strong) CPTScatterPlot *ahrsAlt;
  @property (nonatomic, strong) CPTScatterPlot *calibration;
  @property (nonatomic, strong) CPTScatterPlot *coreAlt;
  @property (nonatomic, strong) CPTScatterPlot *pitch;
  @property (nonatomic, strong) CPTScatterPlot *roll;
  @property (nonatomic, strong) CPTScatterPlot *slip;
  @end
  </code></pre>
  
  <h3>Obj-c Class (ScatterPlotContainer.m)</h3>
  
  <pre><code>#import &lt;CorePlot/CPTScatterPlot.h&gt;
  #import "ScatterPlotContainer.h"
  
  
  @implementation ScatterPlotContainer {
  
  }
  @end
  </code></pre>
  
  <h3>Swift Conversion</h3>
  
  <pre><code>import Foundation
  
   class ScatterPlotContainer : NSObject {
      public var ahrsAlt : CPTScatterPlot;
      public var calibration : CPTScatterPlot;
      public var coreAlt : CPTScatterPlot;
      public var pitch : CPTScatterPlot;
      public var roll : CPTScatterPlot;
      public var slip : CPTScatterPlot;
  }
  </code></pre>
  
  <h3>My bridging headers file</h3>
  
  <pre><code>#import &lt;CorePlot/CPTScatterPlot.h&gt;
  </code></pre>
  
  <h3>What I've tried thus far</h3>
  
  <p>When I comment out the <code>#import &lt;CorePlot/CPTScatterPlot.h&gt;</code> from the Bridging headers file - I get an error in swift because it doesn't know what CPTScatterPlot is</p>
  
  <p>I've also tried <code>#import &lt;CPTScatterPlot.h&gt;</code> which didn't work either. </p>
  
  <h3>Thoughts</h3>
  
  <p>So the only thing I can think of is perhaps because I'm using a cocoa pod there is some sort of module name I need to add.  The error message really isn't that useful.  Does anybody have a suggestion about some blaring error I've made or how to get a more descriptive error message to figure out what is going on?</p>