CFMessagePort and Sandbox

I am adapting a macOS application to use sandboxing. It uses a helper application (exe in the same package) which fails when I try to call CFMessagePortCreateRemote with the message "deny mach-lookup" in the console.

I see that the right key

can solve this, but it is only temporary.

Is there a way to achieve communication between two applications using mach port in a sandboxed application?


source to share

1 answer

For both the app and helper exe:

  • Enable sandbox
  • Add a general group with the teamid prefix

Name your mach port using the teamID ex command:

Apple Documentation Link



All Articles