在iOS上添加quartzcore到xcode 4 [英] Adding quartzcore to xcode 4 for iOS

查看:85
本文介绍了在iOS上添加quartzcore到xcode 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有麻烦在xCode 4上安装关于iOS应用程序的quartzcore。我搜索了很多,看到了很多帖子,但我无法找到答案:如何做到这一点?因为当我尝试将Quartzcore添加到项目的目标中时,似乎我只能添加一个Mac OS X框架。你所能做的就是创建一个iOS框架。

我想很明显,我是xcode和objective-C的新手,所以任何帮助都会受到赞赏。



请原谅我问一些以前可能会问到的问题,但我错过了,因为我的英语语言错误不是我的母语。



再见。

解决方案

在XCode 4的左侧栏中,选择项目文件1)确保您的目标在主视图中被选中,并且您应该在顶部看到5个标签,
$ b
$ b

2)单击Build Phases选项卡,



3)单击Link Binary With Libraries行左边的箭头, 4)点击刚刚出现在该行底部的加号按钮,5)输入QuartzCore进入搜索字段,

6)你应该在里面看到一个名为iOS 4.3的文件夹,其中包含QuartzCore.framework,



7)双击QuartzCore.framework将其添加到当前项目中。

然后它应该出现在左侧边栏中,并且你可以拖拽它如果你愿意,可以在frameworks文件夹中找到。



确保你做了一个

  #import< QuartzCore / QuartzCore.h> 

在您使用框架的任何源文件中。



如果在搜索时没有看到框架,则表示您没有正确安装SDK。您可能希望在那时重新安装Xcode。



希望我能帮上忙!


I have troubles installing quartzcore on xCode 4 regarding an iOS application. I've searched a lot and seen a lot of posts, but I just can't find the answer: how to do it ? Because when I try to add Quartzcore to the targets of the project, it seems I can only add a Mac OS X framework. All you can do about an iOS framework is creating one.

I guess it's obvious that I'm a newbie at xcode and objective-C in general, so any help will be kindly appreciated.

Forgive me for asking something that was maybe asked before and that I missed, and for my language mistakes for english is not my native language.

Goodbye.

解决方案

In XCode 4, in the left sidebar, select the project file at the top:

1) Make sure your target is selected in the main view, and you should see 5 tabs at the top,

2) Click the "Build Phases" tab,

3) Click the arrow to the left of the "Link Binary With Libraries" row,

4) Click the plus button that just appeared at the bottom of that row,

5) Type "QuartzCore" into the search field,

6) You should see a folder named "iOS 4.3" with the "QuartzCore.framework" inside of it,

7) Double click the "QuartzCore.framework" to add it to your current project.

Then it should appear in left sidebar, and you can drag it into the frameworks folder if you wish.

Make sure you do a

#import <QuartzCore/QuartzCore.h>

in any source files that you use the framework.

If you don't see the framework when you search for it, it means you don't have the SDK installed correctly. You probably want to reinstall Xcode at that point.

Hope I could help!

这篇关于在iOS上添加quartzcore到xcode 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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