title: How can I make CorePlot work with swift?
body: <p>I read the tutorial on how to use core plot (<a href="http://www.raywenderlich.com/13269/how-to-draw-graphs-with-core-plot-part-1" rel="nofollow noreferrer">http://www.raywenderlich.com/13269/how-to-draw-graphs-with-core-plot-part-1</a>)
  The project I am working on is written in swift.</p>
  
  <p>I did everything to import the CorePlot library.
  To make sure I did it right, I created a new objective C file and called </p>
  
  <pre><code>#import "CorePlot-CocoaTouch.h"
  </code></pre>
  
  <p>it worked in the test objective-c file (built without errors)</p>
  
  <p>I then put the import statement in the bridging header file, and got 27 errors ALL saying '... the current deployment target does not support automated __weak'</p>
  
  <p>From this post (<a href="https://stackoverflow.com/questions/24806059/coreplot-in-swift-can-not-call-numberforplot">CorePlot in Swift can not call “numberForPlot”</a>), 
  I know I can make core plot work in my swift project somehow.</p>
  
  <p>Can anyone recommend something ?</p>
  
  <p>Thank you for helping.</p>
  
  <p>I followed these steps to import the library : </p>
  
  <p>Static Library Install
  You can also just copy the Core Plot library directly into your project in binary form.</p>
  
  <ol>
  <li><p>Copy the CorePlotHeaders directory to your Xcode project</p></li>
  <li><p>Copy the Core Plot library to your Xcode project.</p></li>
  <li><p>Open your apps Target Build Settings, and for Other Linker Flags include this:</p></li>
  </ol>
  
  <p>-ObjC
  (-all_load used to be required as a linker flag, but this is no longer needed in Xcode 4.2)</p>
  
  <ol start="4">
  <li><p>Add the QuartzCore framework to the project.</p></li>
  <li><p>Add the Accelerate framework to the project (release 2.0 and later).</p></li>
  <li><p>Change your C/C++ Compiler in the project build settings to LLVM GCC 4.2 or LLVM 1.6.</p></li>
  </ol>