rahul
rahul

Reputation: 6487

Why am I getting the error "QuarzCore/QuartzCore.h not found"?

I am new to iOS development and trying to build an app for the device. It gives me the error "QuartzCore.h not found". However, when I try to build the same for the Simulator, it works fine.

I tried adding the QuartzCore.Framework in the build phases tab, but this framework was not showing up.

Upvotes: 0

Views: 2619

Answers (2)

Nguyen Thi Thuy Trang
Nguyen Thi Thuy Trang

Reputation: 204

If you still can't find the problem, you can create a new Xcode project and import the QuartzCore framework. If this solves the problem, migrate to the new project. If not, your Xcode may have a problem.

Upvotes: 1

Alex Blundell
Alex Blundell

Reputation: 2104

After including the QuartzCore framework in build phases, you need to import it into your class files as follows:

#import <QuartzCore/QuartzCore.h>

Notice the '<', '>' characters.

Upvotes: 3

Related Questions