将quartzcore 添加到 iOS 版 Xcode 4
我在 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Xcode 4 中,在左侧边栏中,选择顶部的项目文件:
1) 确保在主视图中选择了您的目标,并且您应该在顶部看到 5 个选项卡,
2) 单击“Build Phases”选项卡,
3) 单击“Link Binary With Libraries”行左侧的箭头,
4) 单击该行底部刚刚出现的加号按钮,
5) 在搜索字段中输入“QuartzCore”,
6) 您应该看到名为“iOS 4.3”的文件夹,其中包含“QuartzCore.framework”,
7) 双击“QuartzCore.framework”将其添加到当前项目中。
然后它应该出现在左侧边栏中,如果您愿意,您可以将其拖到框架文件夹中。
确保
在使用该框架的任何源文件中执行 a 操作。
如果搜索时没有看到框架,则说明您没有正确安装SDK。此时您可能想重新安装 Xcode。
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
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.
我也遇到了同样的问题,并且我发现了无需重新安装 xcode 和 sdk
步骤:
下载和解压来自此处
的压缩QuartzCore.framework
打开您的项目单击任何可用的框架并选择在查找器中显示 em>
粘贴 QuartzCore.framework在解压文件中找到。
点击项目,然后点击目标,然后从构建阶段链接库和框架
单击加号,然后在即将出现的弹出窗口中输入Quartz
。就是这样。
参考文献:
Ref1
Ref2
I was also experiencing the same problem and I figured that out without reinstalling the xcode and sdk
Steps:
Download and unzip the compressed QuartzCore.framework from here
Open your project click on any of the available framework and choose show in finder
Paste the QuartzCore.framework found in the unzipped file there.
Click the project and then target and then link libraries and framework from build phases
Click plus and then type the Quartz in the upcoming pop up
There you go.That's it.
References:
Ref1
Ref2