I believe it’s possible, but you have to package the daemon into a bundle so that there’s a place to store the provisioning profile. That, in turn, means you’ll need to install your daemon via an installer, because
SMJobBless
can only deal with a ‘flat’ executable.
I’m pretty sure that one of my colleagues has done exactly this in a completely different context. If you run into problems, open a DTS tech support incident and either he or I can respond officially [1].
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
[1] Technically
kSecUseDataProtectionKeychain
is a macOS 10.15 beta feature, and DTS isn’t yet supporting that. However, it’s easy enough to cast your question in terms of stuff that’s included in macOS 10.14.