Core plot: Library binary missing
I was following this link :
http://www.jaysonjc.com/programming/pie-chart-drawing-in-iphone-using-core-plot-library.html
to plot values in Xcode. But for me adding the daughter project CorePlot-CocoaTouch.xcodeproj includes no libCorePlot-CocoaTouch.a library binary to follow further instructions. I am using开发者_JAVA技巧 XCode 4.0.2..
This is how it should look like:
I already spend the whole day trying to include that framework :(
You use the same settings, but they're in different places in Xcode 3 and Xcode 4. It looks like that tutorial was done with Xcode 3.
In Xcode 4, you get to the settings pane that you need by selecting your project on the left, clicking the target in the middle, and selecting the "Build Phases" tab on the right. Drag libCorePlot-CocoaTouch.a from the Core Plot Products folder to the "Link Binary With Libraries" section on the right. Click the "+" under "Target Dependencies" and add CorePlot-CocoaTouch. The .a file still appears in red for me, but it compiles and links fine.
精彩评论