I recently upgraded to macOS Catalina (Version 10.15.2) and am now having issues with recognizing keyboard events. I am working in Xcode (Version 11.3) and receive the following error after building and running my project, and attempting to move a sprite with the arrow keys:
TCC deny IOHIDDeviceOpen
We got a keyboard without any keys (1)
If I go into 'System Preferences > Security & Privacy > Input Monitoring' and whitelist the .app that I build, it temporarily fixes the issue. But the second I change the source code and recompile, it stops recognizing keyboard inputs. Toggling the 'Input Monitoring' privileges fixes it for the current build, but this is annoying and I don't want to have to toggle this on and off every time I change the source code
Has anyone else encountered this issue and/or found a solution?