在Xcode 5项目中使用Core Plot 2 [英] Using Core Plot 2 in an Xcode 5 project

查看:84
本文介绍了在Xcode 5项目中使用Core Plot 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此处的说明将Core Plot集成到我的iOS Xcode 5项目中并且没有问题的结束。

I'm using the instructions here to integrate Core Plot into my iOS Xcode 5 project and am having no end of issues.

我尝试使用静态库安装,但似乎这是指1.4,因为它有没有名为 CorePlotHeaders 的目录但是如果我尝试使用1.4我遇到了运行时问题。

I tried using the Static Library Install but it seems this refers to 1.4 as there is no directory called CorePlotHeaders though if I try to use 1.4 I run into runtime issues.

我接下来试过了按照从属项目安装中的描述拖动 CorePlot-CocoaTouch.xcodeproj ,但这只会将其复制为文件,而不是整个项目。

I've then tried to drag the CorePlot-CocoaTouch.xcodeproj as described in the Dependent Project Install but this only copies it as if its a file and not the whole project.

是否有更多当前使用它作为静态库的说明,或者我如何将项目错误地复制到我的项目中?

Is there more current instructions for using it as a static library or how am I copying the project incorrectly into my project?

推荐答案

如果要使用静态库,请使用通用库目标进行构建。这会将静态库和 CorePlotHeaders 文件夹放在Core Plot目录中的 build 文件夹中。

If you want to use the static library, build it using the "Universal Library" target. This will put the static library and the CorePlotHeaders folder in the build folder inside your Core Plot directory.

To使用依赖项目,将项目文件从Finder拖到Xcode窗口左侧浏览器窗格中的应用程序项目下的Xcode中。请记住在您的应用内置设置中设置标头搜索路径,否则它将无法找到Core Plot标头。

To use the dependent project, drag the project file from the Finder into Xcode under your app project in the browser pane at the left side of the Xcode window. Remember to set the "Header Search Paths" in your app build settings or it won't be able to find the Core Plot headers.

这篇关于在Xcode 5项目中使用Core Plot 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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