How to make Xcode4 stop at NSAssert failure?

前端 未结 2 1243
不知归路
不知归路 2021-01-30 14:40

Currently, my Xcode4 does not stop at NSAssert failure. How can I make it stop at NSAssert failure again?

2条回答
  •  时光说笑
    2021-01-30 15:11

    Assertions are automatically disabled, by default, in a Release build. If you want assertions to work, do a Debug build, or turn off the Other C Flags build setting where assertions are turned off in the Release build.

提交回复
热议问题