Search code examples
iosxcode5core-plot

Using Core Plot 2 in an Xcode 5 project


I'm using the instructions here to integrate Core Plot into my iOS Xcode 5 project and am having no end of issues.

I tried using the Static Library Install but it seems this refers to 1.4 as there is no directory called CorePlotHeaders though if I try to use 1.4 I run into runtime issues.

I've then tried to drag the CorePlot-CocoaTouch.xcodeproj as described in the Dependent Project Install but this only copies it as if its a file and not the whole project.

Is there more current instructions for using it as a static library or how am I copying the project incorrectly into my project?


Solution

  • If you want to use the static library, build it using the "Universal Library" target. This will put the static library and the CorePlotHeaders folder in the build folder inside your Core Plot directory.

    To use the dependent project, drag the project file from the Finder into Xcode under your app project in the browser pane at the left side of the Xcode window. Remember to set the "Header Search Paths" in your app build settings or it won't be able to find the Core Plot headers.