Got it to work. The difficulty lied in the LaunchdDaemon .plist file which does not look like the one in the EvenBetterAuthorizationSample sample code. On Fri, Aug 12, 2016 at 5:36 AM, Jeremy Huddleston Sequoia <jeremyhu@apple.com> wrote:
On Aug 11, 2016, at 14:31, Stephane Sudre <dev.iceberg@gmail.com> wrote:
Is there somewhere a sample project that shows how to start a launchd daemon using XPC through a Mach Service?
To start the daemon, just send a message. launchd will start the process when there is a message in the port. There is no different compared to any other MachIPC in this regard.
The 2012 WWDC session on XPC does not seem to imply that some voodoo code (*) must me implemented to install a listener for a mach service name and receive the messages.
* like all the launch_data_ stuff you need to do when using a MachPort. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/jeremyhu%40apple.com
This email sent to jeremyhu@apple.com
-- Packaging Resources - http://s.sudre.free.fr/Packaging.html _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com