Re: specifying paths for frameworks
Re: specifying paths for frameworks
- Subject: Re: specifying paths for frameworks
- From: Brent Gulanowski <email@hidden>
- Date: Thu, 12 Aug 2004 20:43:51 -0400
On Thu, 12 Aug 2004 12:10:50 -0600, Denise Eatherly
<email@hidden> wrote:
> Hi,
>
> My XCode application project can't seem to find its frameworks for
> linking when I move all the projects to a different computer - with a
> different user name. If the user name and paths are identical, there
> is no problem. If I clean and build on the new host, XCode finds,
> cleans and builds the dependent frameworks, but still can't find them
> when it tries to compile the app. It shows all the framework header
> files correctly in the Groups and Files column, but claims they don't
> exist once the build starts. Any help would be hugely appreciated.
>
> I have included the details below in case there is not a totally
> obvious answer to this.
>
> For the purposes of this explanation, I'll say 'my laptop.' The
> results are the same on other desktops too.
>
> The app uses 2 frameworks.
> Each framework is a separate XCode project.
> Each framework is set up as a dependancy for the app.
> Each framework is added to the app as a "project relative" linked
> framework that points to the build product in the framework project
> Each framework is subsequently embedded into the app using a copy
> files build phase.
>
> On my desktop machine, everything compiles as expected and the app runs
> correctly. If I just move the .app file to my laptop, it runs correctly
> as well.
>
> I move the app project and the two framework projects using the same
> directory structure ( two folders, one named MyApplication and one
> named Frameworks at the same in a Testing folder. Frameworks contains
> the two frameworks projects and MyApplication contains the application
> project.) When I open XCode, everything looks fine in the Groups and
> Files column. I can see all the headers for both frameworks. If I
> clean and build, the two frameworks are cleaned and rebuilt. Once the
> build for the application starts, the build fails with a message that
> the imported framework header files don't exist.
>
> I can remove all references to the linked frameworks and add them back
> to the app project on the new host machine, but I get the same errors.
> Is there an obvious setting somewhere that I'm neglecting?
>
My experience is that Xcode knows four places to look for frameworks
without needing further prompting: the three Library/Frameworks
directories, and the build directory, if you have a single one of
such. Alternately, you need an additional search path which points to
the location of the framework.
The simplest solution to your problem is simply to add a search path.
Do this in either the target or build style of your choice, under
"Framework search paths".
What fact many people seems to assume, sensibly, but which is
(apparently) incorrect, is that Xcode automatically adds the location
of added files to the (relevant) search path (except for source files,
but that's first order).
So where are the products of your framework projects being built? Does
Xcode consider that a valid location (i.e. does it search there)?
Cheers,
--
Brent Gulanowski
http://www.boredastronaut.com
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.