• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ENABLE_NS_ASSERTIONS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Any way to get a warning if a non-boolean type is used in an if expression?
  • Next by Date: Re: ENABLE_NS_ASSERTIONS?
  • Previous by thread: Re: Zoom is driving me crazy
  • Next by thread: Re: ENABLE_NS_ASSERTIONS?
  • Index(es):
    • Date
    • Thread