Daddy
Daddy

Reputation: 9035

CorePlot iPhone error : CorePlot-CocoaTouch.h: no such file or directory

I'm trying to walk someone through adding CorePlot to their iPhone app. I have it working on my computer, but he keeps getting the

CorePlot-CocoaTouch.h: no such file or directory

error. I get the same error if I mess up the "header search paths" in the build settings. Otherwise, I can build it just fine. The only difference in our setup is that I'm using XCode 3.2.3 and he is using a previous version. Would that cause an issue like this? The only thing I can think of is that his header search path is not getting read correctly, because we've verified that the header search path is correct on his end.

Thanks for any help!

Upvotes: 1

Views: 4026

Answers (4)

Priety
Priety

Reputation: 308

Make sure that you have dragged the headers folder which is the part of the framework. For me just by just by dragging the solution did not help. I had to drag the headers to my application in order to make it work.

Upvotes: 0

Likith A
Likith A

Reputation: 21

Go thru this link..

http://www.jaysonjc.com/programming/pie-chart-drawing-in-iphone-using-core-plot-library.html

It'll b helpful..

just check the header search paths (to get the right path ,go to CorePlot-CocoaTouch.h file ,right click and then get info )and even U should tick on recursive in header search paths.

Upvotes: 2

Andreas Prang
Andreas Prang

Reputation: 2217

  • You should to set Header Search Paths = ../build/ ** ../framework/ **

  • Your filepaths should be:

    -> folder X

    -> -> build (CorePlot buildFolder)

    -> -> framework (CorePlot projectFolder)

    -> -> myProjectFolder

    -> -> -> myProject.xcodeproj

    -> -> -> [...]

Upvotes: 4

jer
jer

Reputation: 20236

Make sure that in the build target, the header is part of the copy build phase. This should clear it up if you're in fact, embedding CorePlot in the application.

Upvotes: 2

Related Questions