- cgeventtap-example
- iokit-hid-report-example
- iokit-hid-value-example
- nsapplication-example
- nsevent-example
- nsview-example
All about macOS event observation
- macOS 10.13 or later
- CMake (
brew install cmake
)
-
Find your codesign identity if you have one.
(Skip this step if you don't have your codesign identity.)security find-identity -p codesigning -v | grep 'Developer ID Application'
The result is as follows.
1) 8D660191481C98F5C56630847A6C39D95C166F22 "Developer ID Application: Fumihiko Takayama (G43BCU2T37)"
Your codesign identity is
8D660191481C98F5C56630847A6C39D95C166F22
in the above case. -
Set environment variable to use your codesign identity.
(Skip this step if you don't have your codesign identity.)export PQRS_ORG_CODE_SIGN_IDENTITY=8D660191481C98F5C56630847A6C39D95C166F22
-
Build
dist/osx-event-observer-examples.dmg
by the following command on terminal.make dist
User approval of Accessibility is required to use cgeventtap-example and nsevent-example. (User approval of Input Monitoring is also required since macOS 10.15)
User approval of Accessibility and Input Monitoring is required
to use iokit-hid-value-example
since macOS 10.15.