Shaheer Palolla
Shaheer Palolla

Reputation: 265

enable Assertions in objective c

How to enable Assertions in objective?

I have added a third party library which has some Assertions. But it does not work. I think Assertions are disabled. So I want enable it.

Upvotes: 0

Views: 332

Answers (1)

Midhun MP
Midhun MP

Reputation: 107141

You need to use NSAssert for the assertions.

The NSAssertions are disabled if the NS_BLOCK_ASSERTIONS is specified.

You can use the NSAssert like:

NSAssert(count != 0, @"Count should be greater than zero"); 

Upvotes: 2

Related Questions