trilemma-dev / SecureXPC

A simple and secure XPC framework for Swift
MIT License
73 stars 15 forks source link

Adds support for `SMAppService` agents & daemons #99

Closed jakaplan closed 2 years ago

jakaplan commented 2 years ago

Implemented and tested on macOS 13.

jakaplan commented 2 years ago

@amomchilov available for you to review if you'd like. This is to add support for the new agents & daemons functionality as part of SMAppService. The daemon functionality is conceptually (but not in implementation) a replacement for SMJobBless.

amomchilov commented 2 years ago

Interesting, I'm learning about SMAppService from you for the first time. Was there a WWDC video on it? I can't find anything.

jakaplan commented 2 years ago

Was there a WWDC video on it? I can't find anything.

Nope, nor a sample. The documentation is present, but not great. I was able to use it enough to install a daemon and an agent, but I have a feeling I'm not using it quite properly. The login item documentation for it is obviously wrong and nonsensical; I asked a question on the Apple Developer Forums a few weeks ago and have not gotten a response which is unlike Quinn the Eskimo.