PDA

View Full Version : 'QuartzCore/CIColor.h' file not found




bsmartr
Apr 4, 2012, 11:12 AM
Hi. I'm running Xcode 4 and trying to follow the steps in Apple's Image Kit Programming Guide (which is written for Xcode 3) on how to work with an Image View and the IKImageView class. I just imported the Quartz and Quartz Core frameworks (from /System/Frameworks directory) to my blank Cocoa Application project using File > Add Files to... menu, but when I try to Run my application I get this error: Lexical or Preprocessor Issue 'QuartzCore/CIColor.h' file not found

Does anyone know what could be a reason?



cMacSW
Apr 4, 2012, 11:22 AM
Are you using

#include "QuartzCore/CIColor.h" in your source file?

bsmartr
Apr 4, 2012, 02:47 PM
Thank you for your reply.
Are you using

#include "QuartzCore/CIColor.h" in your source file?
No, I'm not using it. But apparently it's being used by AppKit framework (see the screenshot I made). CI in CIColor stands for Core Image. I'm now reading Core Image Programming Guide, may be I'll figure it out. Does anyone have any ideas? It's so frustrating, I only added those frameworks (mentioned above) to my project and tried to compile the project but it wouldn't compile. I didn't write any code yet.
Here is a screenshot, hopefully it helps:
http://s1.ipicture.ru/uploads/20120404/2XsUveeV.jpg

bsmartr
Apr 4, 2012, 05:00 PM
Yaay, I solved the issue. The process of importing frameworks has changed completely in Xcode 4 and seems like I got it wrong. I tried to add frameworks to my project by going to File>Add Files to Project ⌥⌘A menu as described in the Apple's Image Kit Programming Guide (which is written in 2008 for Xcode 3) but in Xcode 4 you should do it through the project editor (see screenshot):
http://s1.ipicture.ru/uploads/20120405/tXJhDJ75.png