Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Targets & styles question



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?

Thanks,

Wade
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.