Reputation: 4276
I am using Xcode 4.
I am trying to import the QuartzCore framework into my Xcode project but I get the following compilation error:
/Users/sabobin/Desktop/PlayingCard/PlayingCard/PlayingCardViewController.m:10:26: error: Quartz/Quartz.h: No such file or directory
file://localhost/Users/sabobin/Desktop/PlayingCard/PlayingCard/PlayingCardViewController.m: error: Lexical or Preprocessor Issue: 'Quartz/Quartz.h' file not found
I navigated to the project target, and selected the Build Phases tab, and then added QuartzCore.framework to the Link Binary With Libraries section.
I then used the following import statement in my view controllers implementation file:
#import <Quartz/Quartz.h>
Does anyone have any ideas?
Thanks in advance.
Upvotes: 5
Views: 12984
Reputation: 611
You no longer need to import QuartzCore as of iOS 7, since it is already included when you "import UIKit".
Upvotes: 2
Reputation:
Should use
#import <QuartzCore/QuartzCore.h>
after importing the QuartzCore.framework from Link Binary With Libraries under Build phase in Xcode.
Upvotes: 1
Reputation: 9740
I am wondering What made you write #import <Quartz/Quartz.h>
When the framework you are importing is QuartzCore.
So the correct one as already pointed out by others is #import<QuartzCore/QuartzCore.h>
Upvotes: 2