SMAppService daemon

i am trying to create a daemon with xpc for my app by referring to https://github.com/alienator88/HelperToolApp but i keep getting XPC remote proxy error: Couldn’t communicate with a helper application. All the identifiers all correct but the helper code is not reached.

Answered by DTS Engineer in 863738022

In Getting Started with SMAppService I have a post that explains the process of installing a daemon with SMAppService. I recommend that you work through that.

Notably, this deliberately avoids any mention of XPC. That’s a key simplifying step. You want to make sure your daemon is working correctly before you add XPC into the mix. Once you’re sure that the daemon is working, bringing up XPC is reasonably straightforward.

Share and Enjoy

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

In Getting Started with SMAppService I have a post that explains the process of installing a daemon with SMAppService. I recommend that you work through that.

Notably, this deliberately avoids any mention of XPC. That’s a key simplifying step. You want to make sure your daemon is working correctly before you add XPC into the mix. Once you’re sure that the daemon is working, bringing up XPC is reasonably straightforward.

Share and Enjoy

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

SMAppService daemon
 
 
Q