No keyboard input when running a C++ program in Xcode
I'm running a C++ program, with SFML, in Xcode.
The program runs fine, but it will not accept any keyboard input, only mouse input.
This is the log message I get:
------------------------------------------------------------------------
2023-07-28 08:34:57.788612+1000 Computer Simulation Part A Stage 2[905:20518] Metal API Validation Enabled
The requested video mode is not available, switching to a valid mode
2023-07-28 08:35:05.053946+1000 Computer Simulation Part A Stage 2[905:20518] [default] 0x1000009f5: TCC deny IOHIDDeviceOpen
2023-07-28 08:35:05.054411+1000 Computer Simulation Part A Stage 2[905:20518] [default] 0x1000009f5: TCC deny IOHIDDeviceOpen
We got a keyboard without any keys (1)
Message from debugger: Terminated due to signal 15
----------------------------------------------------------------------
How can I solve this problem?
Mac mini, macOS 13.4