It recently came to my attention that NSAssert only works in debug mode. Is there an analog that will work in normal builds?
Asked
Active
Viewed 55 times
0
-
Standard if/else logic coupled with a manually thrown NSException. – Mick MacCallum Aug 16 '13 at 21:20
1 Answers
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