如何正确安装CorePlot框架? [英] How to install CorePlot framework correctly?

查看:78
本文介绍了如何正确安装CorePlot框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Mac OS X中使用CorePlot.framework.但是,尽管花费了我几个小时,但我无法正确安装它.

I want to use CorePlot.framework in Mac OS X. However, I cannot install it correctly though it has costed me several hours.

我从Google主机站点下载了它(0.4版),并试图将CorePlot.framework放在"/Library/Frameworks/"或其他一些自定义位置.

I downloaded it (0.4 version) from google host site, and have tried to put CorePlot.framework in "/Library/Frameworks/" or some other custom places.

我还将其添加到链接二进制文件和库"中.不幸的是,编译器始终找不到".

I also have added it into "link binary and libraries". unfortunately, the compiler always cannot find "" .

任何有经验的人都可以给我一些安装和使用建议吗?

Any one who have some experience can give me some advice to install and use it?

推荐答案

如果检查自述文件,则可以找到以下说明:

If you check the readme files, you can find the instructions as follows:

  1. 将CorePlotHeaders复制到您的Xcode项目

  1. Copy the CorePlotHeaders to your Xcode project

将libCorePlotCocoaTouch.a复制到您的Xcode项目

Copy libCorePlotCocoaTouch.a to your Xcode project

在目标构建设置中添加到其他链接器标志:-ObjC -all_load

Add to Other Linker Flags in your target build settings: -ObjC -all_load

将QuartzCore框架添加到项目中.

Add the QuartzCore framework to the project.

要遵循这些说明,请创建一个新的空白项目并将CorePlotHeaders文件夹(拖放)复制到Xcode中.出现提示时,请确保选中将这些文件/文件夹复制到源目录".

To follow these instructions, create a new blank project and copy the folder (drag and drop) CorePlotHeaders into Xcode. When prompted, be sure to check "copy these files/folders to the source directory".

接下来,以相同的方式拖动libCorePlayCocoaTouch.a库(再次选中该复选框).现在,您的项目中应该包含.h文件和.a.

Next drag the libCorePlayCocoaTouch.a library in the same manner (again, select the checkbox). You should now have the .h files and the .a included in your project.

现在,选择您的项目,然后选择目标",然后在第三个选项卡的构建设置"中搜索其他链接器标志",并添加-"ObjC -all_load"(不带引号).

Now, select your project and choose the "Target" and in the 3rd tab "Build Settings" search for "Other Linker Flags" and add -"ObjC -all_load" without quotes.

最后,将QuartzCore框架添加到您的项目中,就可以完成.

Finally, add the QuartzCore framework to your project and you're done.

我今天一直在使用CorePlot,到目前为止,它给我留下了深刻的印象.它不是100%全面的,但足以满足我们的需求.如果卡住了,请务必按照自述文件的说明进行操作,并仔细检查是否已根据需要设置所有内容.我不像其他库那样努力地进行设置,因此希望您应该能够以最小的麻烦进行排序:)

I've been working with CorePlot today and am rather impressed with it so far. It's not 100% comprehensive but it's good enough for what we need. If you get stuck, be sure to follow the readme instructions and double check everything is setup as needed. I didn't struggle with getting it set up unlike some other libraries so hopefully you should be able to get sorted with minimal fuss :)

这篇关于如何正确安装CorePlot框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆