Re: Importing framework include files
Re: Importing framework include files
- Subject: Re: Importing framework include files
- From: Chris Espinosa <email@hidden>
- Date: Wed, 14 May 2008 12:21:43 -0700
On May 14, 2008, at 12:01 PM, R.L. Grigg wrote:
In a Cocoa project (OSX 10.5.2, Xcode 3.0) when I add a framework
from /Library/Frameworks into the project "Linked Frameworks" group
how do I then reference one of the frameworks include files from my
code?
Using either #import "name.h" or #import <name.h> comes up with "No
such file or directory". Doesn't adding a framework cause Xcode to
automatically add the Headers subfolder in it's -I search path for
includes?
No, it doesn't add the path to the framework's Headers folder to the -
I (include file directory) list to the compiler, it adds the path to
the framework proper to the -F (framework directory) list to the
compiler.
You need to use framework-style includes, that is <framework/header.h>
to refer to header files in frameworks.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden