Share Extension / Sandbox Issue: sandboxd deny(1) hid-control

I'm developing a Share Extension for a macOS Electron application that allows users to share files from Finder to our application using the system Share menu. The extension compiles, signs, and notarizes successfully, but crashes during initialization due to sandbox restrictions blocking hid-control operations required by NSApplication.

The Share Extension crashes during initialization with the following sandbox violation:

Process:         ShareExtension [pid]
Identifier:      com.xxxxxxxxxxxx.xxxxxxxxx.extension
Operation:       hid-control

I would appreciate guidance on:

  1. The proper entitlements for third-party Share Extensions with App Sandbox
  2. Alternative approaches if Share Extensions have fundamental limitations for third-party developers
  3. Any documentation or sample code demonstrating Share Extensions outside the App Store

Generally, a sandbox violation doesn’t cause the process to crash. Rather, it blocks a specific operation. Of course, it’s possible for the process to crash because it got an error it wasn’t expecting (-:

Anyway, does this crash generate a crash report? If so, please post it here. See Posting a Crash Report for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Share Extension / Sandbox Issue: sandboxd deny(1) hid-control
 
 
Q