DP5 errors in IOHIDEventQueue.c

IosXcode5

Ios Problem Overview


I was working on XCode5-DP4 and I switched to DP5.

Now I have this nasty errors on my logs:

AssertMacros: queueEntry,  file: /SourceCache/IOKitUser/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512

Any ideas? I don't even know where to start searching.

Ios Solutions


Solution 1 - Ios

This is a bug in Xcode 5 DP5. Just ignore it, it will go away in the next BETA build eventually.

Solution 2 - Ios

change your main.m file with this

#import <UIKit/UIKit.h>
#import "QDAppDelegate.h"

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([QDAppDelegate class]));
    }
}

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLucasView Question on Stackoverflow
Solution 1 - IosCocoaneticsView Answer on Stackoverflow
Solution 2 - IosAmitabhaView Answer on Stackoverflow