Adding quartzcore to Xcode 4 for iOS

霸气de小男生 提交于 2019-12-17 12:40:31

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/6956432/adding-quartzcore-to-xcode-4-for-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!