Re: ENABLE_NS_ASSERTIONS?
Re: ENABLE_NS_ASSERTIONS?
- Subject: Re: ENABLE_NS_ASSERTIONS?
- From: Jeffrey Walton <email@hidden>
- Date: Fri, 18 Oct 2013 20:49:04 -0400
On Fri, Oct 18, 2013 at 7:28 PM, Rick Mann <email@hidden> wrote:
> I'm trying to comment out code that becomes unnecessary when an NSAssert is elided. The docs for the build setting say to use ENABLE_NS_ASSERTIONS, but this does not appear to be defined at all in a debug build. The Enable Foundation Assertions setting is enabled in my Project
>
I've never used ENABLE_NS_ASSERTIONS. It looks like it could be
useful. Unfortunately, its not documented:
https://www.google.com/#q="ENABLE_NS_ASSERTIONS"+site:apple.com.
There's an open bug report in an effort to get Apple to look at thees
things: "Xcode 4 and iOS/Mac OS X Default Build Settings
Improvements", Radar 12941954.
> What should I use? There's also NS_BLOCK_ASSERTIONS.
Under Preprocessor macros, I add the following:
Debug: DEBUG=1, NS_BLOCK_ASSERTIONS=1
Release: NDEBUG=1
I also remove them from their misplacement under C Flags.
Jeff
_______________________________________________
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