Screen Recording (macOS)
macOS requires Screen Recording permission before an app can capture other windows.
- The first snip makes macOS ask for permission
- Open System Settings → Privacy & Security → Screen Recording and turn maikap on
- Quit and reopen maikap
The permission resets on every build
Section titled “The permission resets on every build”macOS ties the permission to the app’s code signature. Ad-hoc signed builds lose it on every rebuild (the toggle looks on, but snips show only the wallpaper).
Create a local “MaiKap Dev” certificate once; build-app.sh then signs with it so the grant survives rebuilds.
scripts/make-signing-cert.shAfter changing the signature, reset and grant again:
tccutil reset ScreenCapture dev.bank20baht.maikapopen dist/maikap.app # click New → allow → quit and reopen