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

牧云@^-^@ 提交于 2019-12-02 10:54:34

问题


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!


回答1:


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.




回答2:


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

  • Your filepaths should be:

    -> folder X

    -> -> build (CorePlot buildFolder)

    -> -> framework (CorePlot projectFolder)

    -> -> myProjectFolder

    -> -> -> myProject.xcodeproj

    -> -> -> [...]




回答3:


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.




回答4:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!