Re: How to copy correct framework for build configuration?
Re: How to copy correct framework for build configuration?
- Subject: Re: How to copy correct framework for build configuration?
- From: Scott Tooker <email@hidden>
- Date: Thu, 6 Jul 2006 16:27:08 -0700
I believe you'll want to use $(BUILT_PRODUCTS_DIR) to reference the
location of the frameworks per-configuration. As long as all three
targets build into the same base built products directory and share
the same set of configuration names, this should work (the copy files
build phase should be on the application target).
Scott
On Jul 6, 2006, at 7:37 AM, Rippit the Ogg Frog wrote:
I'm writing an application that has a couple private frameworks.
I'm trying to automate my build, and have been struggling with the
following question for days. I have Read The Fine Manual, sought
friendship with Google, and searched many a mailing list archive,
all to no avail. I am very frustrated.
I have a Copy Files build phase that copies my two frameworks into
my application's bundle. But I can only copy my Release frameworks
into both the Debug and Release builds, or I can copy the Debug
frameworks into both the Debug and Release builds, but I cannot copy
the Release frameworks into the Release app while copying the Debug
frameworks into the Debug app.
Surely this must be a very common operation, but no amount of
searching online has given me a clue. An Apple employee gave a
suggestion on the Carbon-Dev list but it turned out not to work.
In a release note somewhere I found that it was necessary to have
all the build products share the same build folder, so I've done
that: I have a Release folder with my app and two frameworks, and a
Debug folder with my app and two frameworks.
But the path of the item in the Copy Files phase is hard-coded with
the name of the folder that holds it; that is, rather than the path
being set relative to its destination, the name of the Debug or
Release folder appears explicitly.
I'm not able to find a way to set up separate Copy Files phases for
the different build configurations.
Please help me. I'm using XCode 2.3 on a MacBook Pro running 10.4.6.
I am grateful for any help you can give me.
Rippit the Ogg Frog
email@hidden
http://www.oggfrog.com/
_______________________________________________
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
_______________________________________________
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