I have some IOHID code for watching keyboard events.
It was working fine on an earlier version of macOS. About four years ago, I don't remember precisely. Towards the end of the Big Cat era, before the Geography era.
I tried running it on Catalina and it won't pick up events.
I figured this is likely some security measure.
I couldn't find any suitable key in info.plist
Googling, I found a bunch of myProj.entitlements
here
I will just use one of them as an example:
<key>com.apple.iohideventsystem.server</key>
<true/>
If I add this key (bumping over this issue) and run my app, it now quits immediately with:
Message from debugger: Error 1
Even setting a breakpoint in main.m
won't hit.
What is going on?