homebrew の d12frosted/emacs-plus で Emacs をビルドして使おうとすると、「アプリケーション "Finder" には "Emacs.app" を開くアクセス権がありません」というようなダイアログが出て起動に失敗する。macOS のコンソール.appで Emacs 関連のログを見るとエラーとして以下の2行が記録されていた。
Sandbox: itunescloudd(832) deny(1) file-read-data /usr/local/Cellar/emacs-plus@30/HEAD-63adf9d/Emacs.app 1 duplicate report for Sandbox: itunescloudd(832) deny(1) file-read-data /usr/local/Cellar/emacs-plus@30/HEAD-63adf9d/Emacs.app
なんか kernel の Sandbox 的に起動を拒む雰囲気がある。
それぽい情報がないかをググると以下のコメントがあった。
今回は emacs-plus@30 で同様の事象に遭遇したので、こんな感じで解決させた。
sudo codesign --force --deep --sign - /usr/local/opt/emacs-plus@30/Emacs.app