Tag: nsassert

奇怪的错误NSAssert

我不明白为什么我得到 use of undeclared identifier _cmd did you mean rcmd 在NSAssert所在的行上。 #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int x = 10; NSAssert(x > 11, @"x should be greater than %d", x); [pool drain]; return 0; }