Adding quartzcore to Xcode 4 for iOS(将quartzcore添加到Xcode 4 for iOS)
问题描述
我在 Xcode 4 上安装有关 iOS 应用程序的quartzcore 时遇到问题.我只是找不到答案:怎么做?因为当我尝试将 Quartzcore 添加到项目的目标时,似乎我只能添加一个 Mac OS X 框架.对于 iOS 框架,你所能做的就是创建一个.
I have troubles installing quartzcore on Xcode 4 regarding an iOS application. 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.
推荐答案
在 Xcode 4 中,在左侧边栏中,选择顶部的项目文件:
In Xcode 4, in the left sidebar, select the project file at the top:
1) 确保在主视图中选择了您的目标,您应该会在顶部看到 5 个选项卡,
1) Make sure your target is selected in the main view, and you should see 5 tabs at the top,
2) 点击构建阶段"标签,
2) Click the "Build Phases" tab,
3) 点击Link Binary With Libraries"行左侧的箭头,
3) Click the arrow to the left of the "Link Binary With Libraries" row,
4) 点击刚刚出现在该行底部的加号按钮,
4) Click the plus button that just appeared at the bottom of that row,
5) 在搜索栏中输入QuartzCore",
5) Type "QuartzCore" into the search field,
6) 您应该会看到一个名为iOS 4.3"的文件夹,其中包含QuartzCore.framework",
6) You should see a folder named "iOS 4.3" with the "QuartzCore.framework" inside of it,
7) 双击QuartzCore.framework"将其添加到您当前的项目中.
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.
确保你做一个
#import <QuartzCore/QuartzCore.h>
在您使用框架的任何源文件中.
in any source files that you use the framework.
如果您在搜索时没有看到框架,则表示您没有正确安装 SDK.那时你可能想重新安装 Xcode.
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.
这篇关于将quartzcore添加到Xcode 4 for iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:将quartzcore添加到Xcode 4 for iOS
基础教程推荐
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01