Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard input is not possible (TCC deny IOHIDDeviceOpen) #52

Open
suzukiplan opened this issue Mar 10, 2023 · 0 comments
Open

Keyboard input is not possible (TCC deny IOHIDDeviceOpen) #52

suzukiplan opened this issue Mar 10, 2023 · 0 comments

Comments

@suzukiplan
Copy link

suzukiplan commented Mar 10, 2023

Since keyboard input was not available, I built locally and investigated the cause, and found that the following IOHIDManagerOpen was failing with kIOReturnNotPermitted.

IOHIDManagerOpen(keyboardHidManager, kIOHIDOptionsTypeNone);

The following is a log of the above code when it is executed with the following modifications.

Code

        int result = IOHIDManagerOpen(keyboardHidManager, kIOHIDOptionsTypeNone);
        NSLog(@"IOHIDManagerOpen: return = %X", result);

Logs

2023-03-10 09:55:21.018521+0900 CocoaMSX[2081:23585] [default] 0x100000542: TCC deny IOHIDDeviceOpen
2023-03-10 09:55:21.018598+0900 CocoaMSX[2081:23585] [default] 0x100000542: TCC deny IOHIDDeviceOpen
2023-03-10 09:55:21.018683+0900 CocoaMSX[2081:23585] IOHIDManagerOpen: return = E00002E2

tested os version is macOS 13.2.1

There was information that kIOReturnNotPermitted occurs when "Input Monitoring" in system preferences (“Security & Privacy” -> "Privacy" -> “Input Monitoring”) is not set.

information:

So I tried setting it that way, but it had no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant