Re: Build config help needed
Re: Build config help needed
- Subject: Re: Build config help needed
- From: Chris Espinosa <email@hidden>
- Date: Wed, 8 Mar 2006 17:01:21 -0800
On Mar 8, 2006, at 3:17 PM, Brad Oliver wrote:
Hi all,
I need some advice on how to bend Build Configurations to my will.
I've got a project that contains 2 targets: an app target and a
bundle target. I've got two build configs - Debug and Release. So
far so good.
The wrinkle: the bundle gets embedded in the app package at build
time. However, I want the "Debug" bundle to be in the debug app, and
the "release" bundle to be in the release app. I don't see an easy
way to do this with Build Configurations.
However, I suspect it can be done with a shell script phase that
keys off the $(CONFIGURATION) variable, although I'm not quite clear
on exactly how the syntax would work.
Can anyone recommend a way to do this?
This all works automatically, though setup is a little fusser than
you'd like.
I've posted an ecample on my iDisk (cdespinosa) public folder is case
you're keeping score at home.
The basics, which you seem to have already covered:
1) Both the dylib and the app have to be built in Xcode.
2) Both targets must have the same set of configurations (easy if
they're the same project).
3) Targets must share a common build folder (again, easy if they're in
the same project)
Here are the subtle nuances:
1) Set the Installation Directory build setting of the dylib to
"@executable_path/../Resources"
2) After building the dylib, you drag it from the Products group into
the Copy Bundle Resources build phase of the app target.
The per-configuration folder stuff should be handled for you because
the default reference form of the dylib product is "relative to build
products," so it's implicitly per-configuration. The Installation
Directory stuff is a general requirement for any embedded framework or
dylib.
Enjoy,
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