• objc_getClassList returned more classes than it should have.


    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]));

        }

    }

  • 相关阅读:
    C语言第五次作业
    c语言第4次作业
    第12次作业
    C语言第9次作业
    C语言第8次作业2
    C语言第8次作业
    C语言第七次作业---要死了----
    C语言第七次作业
    物联网工程实践第二次作业
    物联网工程实践第一次作业
  • 原文地址:https://www.cnblogs.com/vagrantatbeijing/p/3408402.html
Copyright © 2020-2023  润新知