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!
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.
You should to set Header Search Paths = ../build/ ** ../framework/ **
Your filepaths should be:
-> folder X
-> -> build (CorePlot buildFolder)
-> -> framework (CorePlot projectFolder)
-> -> myProjectFolder
-> -> -> myProject.xcodeproj
-> -> -> [...]
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.
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.
来源:https://stackoverflow.com/questions/3481662/coreplot-iphone-error-coreplot-cocoatouch-h-no-such-file-or-directory