如何在新的 Xcode 3.2 中添加 Quartz Core Framework?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1566350/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to add Quartz Core Framework in new Xcode 3.2?
提问by coneybeare
Since new Xcode 3.2 I find it very hard to add Quartz Core Framework. It does not appear in the list. Previously I just typed in Quartz and some QuartzCore.framework thing popped up. Finder is so bad it does not find any *.framework file on the mac so now the big question is: Where is it hidden?
从新的 Xcode 3.2 开始,我发现很难添加 Quartz Core Framework。它不会出现在列表中。以前我只是输入 Quartz,然后弹出了一些 QuartzCore.framework 的东西。Finder 太糟糕了,它在 mac 上找不到任何 *.framework 文件,所以现在最大的问题是:它隐藏在哪里?
回答by coneybeare
On the left side of XCode, there is a folder called Targets
. Expand it. Double click on your target in that folder. On the General Tab of the info pane that pops up, click the +
sign on the bottom left corner of the window. Scroll down and select QuartzCore.framework
在 XCode 的左侧,有一个名为Targets
. 展开它。双击该文件夹中的目标。在弹出的信息窗格的“常规”选项卡上,单击+
窗口左下角的标志。向下滚动并选择QuartzCore.framework
You will also have to make sure your base SDK is 3.x
您还必须确保您的基础 SDK 是 3.x
UPDATE: to use, place this import statement in your code#import <QuartzCore/CoreAnimation.h>
更新:要使用,请将此导入语句放在您的代码中#import <QuartzCore/CoreAnimation.h>