NSAssert和NSCAssert有什么区别?当我探索他们的实现时,他们看起来非常相似,我找不到我的问题的答案.
我想这也将解释NSParameterAssert和NSCParameterAssert之间的区别.
解决方法
The second is the difference between C and Objective-C assertions:
NSAssert should only be used in an Objective-C context (i.e. method
implementations),whereas NSCAssert should only be used in a C context
(i.e. functions).