I've written an Application that uses XPC Service to communicate with its helper. The application launches and works as expected within Xcode.

However, the following error appears when I try to run the application outside of Xcode after I Archive it.

HideMyMac[27183:936477] XPCService error: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named io.jabbari.HideMyMac.HideMyMac-XPCService" UserInfo= {NSDebugDescription=connection to service named io.jabbari.HideMyMac.HideMyMac-XPCService}

Here is the source of this application on Github. I normally would provide source with my code, however, the xml style plists would clutter the page and take away from the post.

Here what I have attempted:

Step 1: Updated - Main App Target -> Capabilities Tab

Turned on 'App Sandbox'

Turned on 'App Groups'

Added an app group - 'XYZ'

Step 2: Updated - Helper Target -> Capabilities Tab

Turned on 'App Sandbox'

Enabled 'Outgoing Connections (Client)'

Turned on 'App Groups'

Added an app group - 'XYZ'

What am I missing anything?