经典问题:CorePlot-CocoaTouch.h:没有这样的文件或目录
请原谅我问这个老问题,但我真的尝试过 我可以在这个论坛和 stackoverflow 上找到的所有解决方案, 问题仍然没有解决...请帮助我:( 所以这就是我所做的:
1)我将“CorePlot 0.2.2.zip”下载到我的项目文件夹中。
2) 将“CorePlot-CocoaTouch.xcodeproj”拖放到我的项目中。 取消选中“复制项目...”并更改“相对于项目”。
3) 将“libCorePlot-CocoaTouch.a”拖至 Target 的“链接二进制文件” Libraries”文件夹。4
) 在 Direct 下添加“CorePlot-CocoaTouch (from CorePlot ...)” 依赖性。
5)5)在“标题搜索路径”中,我添加了路径-/Users/el08ywk/Desktop/ PlotGraphhhhh/CorePlot 0.2.2/Source/framework ,并将其设置为 “递归”。
6) 在“其他链接器标志”中,我添加了 -ObjC 和 -all_load
7) 最后,我将 QuartzCore 框架添加到我的项目中。
现在,当我构建并运行它时,我有 51 个错误,所有这些错误都说 有些东西是“未声明的”,并且在 .h 文件中显示 Coreplot-CocoaTouch no 这样的文件或目录...
那么我哪里做错了?先感谢您。
Please excuse me for asking this old problem but I have really tried
every solutions I could find in this forum and over at stackoverflow,
and the problem still hasn't been resolved...Please help me :(
So here is what I did:
1) I downloaded 'CorePlot 0.2.2.zip' into my project folder.
2) Drag and drop the 'CorePlot-CocoaTouch.xcodeproj' into my project.
Uncheck the "Copy items..." and change "Relative to project".
3) Drag 'libCorePlot-CocoaTouch.a' to Target's 'Link Binary with
Libraries" folder.
4) Add 'CorePlot-CocoaTouch (from CorePlot ...)' under Direct
Dependencies.
5) 5) In 'Header search paths' I added path- /Users/el08ywk/Desktop/
PlotGraphhhhh/CorePlot 0.2.2/Source/framework , and set it to
'recursive'.
6) In "other linker flags", I added -ObjC and -all_load
7) Finally, I added the QuartzCore framework to my project.
Now when i build and run it, i have 51 errors, all of which say
something is 'undeclared' and in .h file says Coreplot-CocoaTouch no
such file or directory...
So where have i done wrong? Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请小心下载和使用 de core-plot 库的位置,我在桌面上使用它时遇到了一些麻烦,尝试将文件夹移动到“/”先进行测试,确定有效后,将其放在您有足够授权的地方,
希望对您有所帮助。
Be careful where you download and use de core-plot library, I had some troubles when it was on my Desktop, try to move the folder at "/" to test first, and after you are sure it works, put it where you have sufficient authorizations.
I hope it helped you.
听起来 CorePlot 框架尚未添加到构建目标中。一个项目可以同时构建多个目标,每个目标都有自己的一组依赖项。检查添加到目标的框架。 CorePlot 很可能不会出现。
It sounds like the CorePlot framework has not been added to build target. A project can build many targets at once each with it's own set of dependencies. Check the frameworks added to the target. Most likely CorePlot won't be there.