0

It recently came to my attention that NSAssert only works in debug mode. Is there an analog that will work in normal builds?

user1802143
  • 14,662
  • 17
  • 46
  • 55

1 Answers1

2

You are right. Xcode automatically turns off assertions for release builds. If you really want to have them in your release build you can remove the -DNS_BLOCK_ASSERTIONS=1 flag from Other C / C++ flags in your build settings.

Kevin
  • 1,506
  • 9
  • 12