Re: finding header files
Re: finding header files
- Subject: Re: finding header files
- From: Glenn Andreas <email@hidden>
- Date: Fri, 16 Jul 2004 16:35:11 -0500
At 2:58 PM -0500 7/16/04, John Spicer wrote:
This is going to seem pretty silly, but I'm stumped. I've added a
framework to a project (a static framework), and I can't seem to
make XCode find the header files for it.
What do you mean by a "static framework"? Frameworks, pretty much by
definition, contain dynamically loaded librarys (as well as resources
and header files). One adds a framework by the "Add Framework"
command in XCode, which adds it to the list of frameworks to link
(and also should update the framework search directory list if that
framework isn't part of the system installed framework). From that
point on, #include "Framework/Whatever.h". The inspector show both
the frameworks linked as well as the additional framework search
paths.
I'm trying to #import a header into one of my files, but Xcode says
it does not exist. (I know it does, I can see it!)
By any chance do you have your OS SDK set to something like 10.2, and
have picked a 10.3 only framework? You'll see it the project window,
but when compiling the framework won't be found.... (since it doesn't
exist for 10.2 - things that come from
/System/Library/Frameworks/Foo.framwork are actually compiled as
something like
/Developer/SDKs/MacOSX10.2.7.sdk/System/Library/Frameworks/Foo.framwork)
You can also look at the compile commands by bringing up the build
progress window and clicking that striped button on the right to
show the actual command line commands in all their gory details,
which might help to show where it is looking for your stuff.
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.