r/macosprogramming • • Jun 16 '26

Sandboxed app <> Launch Agent - how to communicate?

I’m building a sandboxed macOS App Store app that registers an agent using `SMAppService`.

I’m trying to understand the IPC setup between the main app and the SMAppService-managed agent. The obvious options seem to be: XPC with a Mach service

But from what I understand, I’d need special entitlement that allows me to communicate over XPC Mach service - which is unlikely to pass Mac App Store review.

So how do people communicate with process registered with SMAppService?

2 Upvotes

2 comments sorted by

1

u/[deleted] Jun 17 '26

[removed] — view removed comment

1

u/msmialko Jun 17 '26

sure, but they couldn't figure this out :> The whole problem started because I needed Launch Agent that could act as a proxy for my MCP server - so that AI agents could talk to my app.

I think I figured this out though! Here's a helpful topic: https://developer.apple.com/forums/thread/820631