IPC within app group

Hi folks,

I'm trying to build communication between the main app and its helper via inter-process communication.

I found here that it is possible if the apps are in the same app group. But I really cannot make it work, and cannot understand what I do wrong. It works all good if I add com.apple.security.temporary-exception.mach-lookup.global-name entitlement, so the setup seems to be correct? Where should I look to fix it? Also because having that entitlement means that it is gonna be tricky to get through the App Review.

Answered by endore8 in 688022022

The helper app is downloaded and installed outside of the Mac App Store.

I've actually managed to find the working solution.

XPC does work between apps within the same app group. The issue I had with configuring the mach service name. It turned out that it had to be in this format "team_id.group.your_app_domain.suffix", where suffix in my case was just "Helper".

I'm trying to build communication between the main app and its helper

Define “helper” in this context?

Share and Enjoy

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

Helper basically is another app as a LaunchAgent.

The Mac App Store doesn’t support installing launchd agents, so how is your agent installed? It is something that ships outside of the Mac App Store? Or perhaps you’re talking about a Service Management login item?

Share and Enjoy

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

Accepted Answer

The helper app is downloaded and installed outside of the Mac App Store.

I've actually managed to find the working solution.

XPC does work between apps within the same app group. The issue I had with configuring the mach service name. It turned out that it had to be in this format "team_id.group.your_app_domain.suffix", where suffix in my case was just "Helper".

IPC within app group
 
 
Q