I am trying to create a connection between an OSX app and a command line tool to work with distributed objects.
The connection is registered in the command line tool like this
[NSConnection serviceConnectionWithName:@"server" rootObject:extManager];
and an attempt to connect to the registered connection object is made from the app like this
self.serverConnection = [NSConnection connectionWithRegisteredName:@"server" host:nil];
When the app is NOT sandboxed the connection is made. When the app is sandboxed the connectionWithRegisteredName
returns nil.
I have tried adding a key and value to the entitlements and signing both the tool and the app with the team certificate but it doesn't work
<key>com.apple.security.application-groups</key>
<array>
<string><TEAM ID>.AppSuite</string>
</array>
What can I do to make the connection work when sandboxed?