macOS: opening a document with multiple images triggers repeated permission prompts
What happens
Opening a Markdown file that references multiple local images (e.g. from Desktop, Documents, or Downloads) produces a permission prompt for each image — sometimes several dialogs stacked on top of each other.
Why
Two root causes, both documented in existing issues:
-
Ad-hoc signing pins TCC grants to the binary hash (#209). Every update produces a different hash, so macOS sees a new app and re-asks. A Developer ID certificate would pin the grant to the team identifier instead, surviving updates.
-
The Documents folder triggers TCC (#505). Opening files from Desktop/Documents/Downloads requires a security-scoped bookmark that ad-hoc signed apps cannot persist. Each image reference in the document is a separate file access, and each one can independently trigger the prompt.
The two combine: an unsigned app accessing N images in a protected folder produces up to N permission dialogs.
Related
- #209 — macOS file-access permission not persisted (ad-hoc signed)
- #505 — Documents folder permissions repeatedly requested