私はApp Scriptingを利用するMacアプリケーションを開発しています。これはサンドボックス化されているため、AppleScriptイベントを他のアプリケーションに送信する権限を取得するには適切な権限が必要です。私はこのようなアクセスグループ識別子を指定します(メールと楽しんでるような)アプリケーションのために正常に動作し、これを得ている:アクセスグループID = "*"のAppleScript App資格
<access-group identifier="com.apple.mail.compose" access="rw"/>
<access-group identifier="com.spotify.playback"/>
しかし、アップルの他のいくつかは、(Xcodeのような)アプリケーションは、このように自分のIDを指定作っ:
<access-group identifier="*"/>
私はこのように私のエンタイトルメントファイルを設定しようとしています
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.dt.Xcode</key>
<array>
<string>*</string>
</array>
</dict>
が、これをやったときに、それは動作しませんし、私は、コンソールにこのエラーメッセージが表示されます:
AppleEvents/sandbox: Returning errAEPrivilegeError/-10004 and denying dispatch of event xcod/buld from process '-------'/0x0-0x1a05a04, pid=82514, because it is not entitled to send an AppleEvent to this process.
これを正しく設定する方法を知っている人はいますか?