Re: Resend:Targets & styles question
Re: Resend:Targets & styles question
- Subject: Re: Resend:Targets & styles question
- From: Jens Miltner <email@hidden>
- Date: Fri, 23 Jan 2004 09:57:03 +0100
Am 22.01.2004 um 23:33 schrieb Wade Williams:
Coming from the Codewarrior world, I'm used to creating a different
target for debug and production builds. The debug build obviously has
optimizations off, and outputs a "binary" of appname_debug.app. The
production build turns optimizations on, removes symbols and creates
appname.app.
I'm trying to replicate that in Xcode. In Xcode, it appears the thing
to do is use one target, and build styles. However, I'd really like
the application to be named differently if I'm building the debug
version - I don't want to take any chances on forgetting to change a
build style and sending out a debug version.
I tried adding "Product Name" to the development build style with the
intention of overriding the target Product Name, but it would not
allow any values with a space in the name - I mean the setting name,
not the product name (i.e. it wouldn't accept "Product Name" because
of the space).
Obviously I could create a debug target, but since build styles are
global, I'd have to remember to switch to the deployment build style
when building the production target and then back to the development
style for the development target.
So, can anyone give advice on how to setup Xcode to produce a
differently named binary for debug and deployment builds?
I think you can take both approaches in Xcode:
(1) You could just have one build style (build styles are per project)
and two targets. (Choose "Edit Build Styles..." in the build style
popup in your projects Info window and you can get rid of one of the
build styles).
Then, create two targets and make all your settings in those targets.
That way you's simulate the CodeWarrior approach.
(2) About trying to change the Product Name: I think the reason you
were not able to _add_ this to the build style is that this setting is
already there: Just select the "General" group in the build style's
settings and type "product" in the search box at the bottom. Then just
enter your new product name in the settings entry for "Product Name".
</jum>
_______________________________________________
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.