With Xcode 12 the following lines of code had been working fine :
CFRunLoopSourceRef runloop = CFMessagePortCreateRunLoopSource(kCFAllocatorDefault, this->m_localPort, 0);
CFRunLoopAddSource(CFRunLoopGetCurrent(), runloop, kCFRunLoopCommonModes);
CFRunLoopRun();
Xcode 13 is basically causing this to crash at CFRunLoopRun with the following error :
[CFData release]: message sent to deallocated instance 0x281013cf0
It looks like something got released earlier than it should have.
This works fine with Xcode 12 though. I am assuming this should be a bug, but is there anything I can do to verify this or pin point what exactly is wrong.