Mailing Lists: Apple Mailing Lists

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

Re: How to detect the configuration?



On Thu, May 29, 2008 at 5:05 AM, Richard Kennaway
<email@hidden> wrote:
> How can an XCode program detect whether it was built in Debug or Release
> configuration (or any other, for that matter)?  In Visual Studio, _DEBUG is
> defined as a preprocessor symbol for Debug versions, but I can't find
> anything similar in the project settings in XCode, or the docs.  I can
> manually add _DEBUG to the settings, but that's tedious in a project with a
> dozen build targets.  Is there anything automatically #defined?

There is no need to add it to a dozen build targets. Add it to the
project, and it will be inherited by all of the targets in said
project.

-- 
Clark S. Cox III
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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Thanks for the warm invite! (From: Fred Gaddis <email@hidden>)
 >Re: Thanks for the warm invite! (From: "Michael Crawford" <email@hidden>)
 >Re: Thanks for the warm invite! (From: Jens Alfke <email@hidden>)
 >Re: Thanks for the warm invite! (From: "Michael Crawford" <email@hidden>)
 >How to detect the configuration? (From: Richard Kennaway <email@hidden>)



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.