On Oct 25, 2007, at 9:11 PM, Blair M. Burtan wrote: Okay, pretend I know squat about Xcode. I'm trying to bring over some old Codewarrior code (man, I miss Codewarrior). A source file has the following:
#include <myfancylibrary/myfancylibrary.h>
What do I need to do to get Xcode to find this file? I've tried adding the directory myfancylibrary to both the Header search path and User Header search path lists to no avail. I've tried adding the actual .h file to the project. No soap there either.
No matter what I try I keep getting "No such file or directory"
A little help here would be nice. Thanks.
<myfancylibrary/myfancylibrary.h> can be interpreted two ways:
- a file called myfancylibrary.h in a directory called myfancylibrary.h in some directory that's in your Library Search Paths - a file called myfancylibrary.h in the Headers directory in the framework myfancylibrary.framework in some directory in your Frameworks Search Path
Make sure that if it's the latter that Frameworks Search Paths include the paths of the folders containing the frameworks, not to the framework itself nor deep into it. Also, such frameworks shouldn't be in per-configuration locations (i.e. if you see a path component of Debug or Release or Development or Deployment, you're not doing it right)
The normal way to do this in Xcode is to have the project that builds myfancylibrary build it to a shared Objects directory (SYMROOT), and then any projects that you drag and drop that framework into that share that Objects directory will pick it up automatically, for each configuration.
Chris |