How to know if NSAssert is disabled in release builds?

Update: Verified this works in Xcode 8 as well.

In Xcode 7, go into the project build settings and search for “Assert” in the search bar. This shows section “Apple LLVM 7.0 – Preprocessing” section. There is a setting named “Enable Foundation Assertions”.

I have successfully enabled/disabled NSAssert from there.

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)