开发者

Adding quartzcore to Xcode 4 for 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 开发者_JAVA技巧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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜