2013-08-25 11:42:18.497 BrowserOverflowT[1562:60b] *** Assertion failure in -[XCTestClassEnumerator init], /SourceCache/XCTest/XCTest-10/XCTestFramework/Classes/XCTestClassEnumerator.m:90
2013-08-25 11:42:18.499 BrowserOverflowT[1562:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'objc_getClassList returned more classes than it should have.'
//修改main.m 文件。
typedef int (*PYStdWriter)(void *, const char *, int);
static PYStdWriter _oldStdWrite;
int __pyStderrWrite(void *inFD, const char *buffer, int size)
{
if ( strncmp(buffer, "AssertMacros:", 13) == 0 ) {
return 0;
}
return _oldStdWrite(inFD, buffer, size);
}
int main(int argc, char * argv[])
{
_oldStdWrite = stderr->_write;
stderr->_write = __pyStderrWrite;
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}