54

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.

Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
Lucas
  • 1,135
  • 1
  • 9
  • 20

2 Answers2

18

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

Cocoanetics
  • 8,171
  • 2
  • 30
  • 57
17

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]));
    }
}
Amitabha
  • 1,664
  • 1
  • 12
  • 30