3 ms·
Ask HN: How do we create a helper tool for macOS in Swift?
I want to create a helper app that has elevated privileges, so I can execute commands that will modify user defaults. I can't do this standalone in the app due as this will cause security issue. I can't find any docs related to helping build a helper tool using IPC or XPC or using Authorisation Services in this scenario.
Does anyone here happened to know how to build them?
- Someone 4y agoWhen I Google “swift authorization services example” I get https://github.com/trilemma-dev/SwiftAuthorizationSample https://github.com/trilemma-dev/SwiftAuthorizationSample which looks promising to me. It’s MIT licensed, doesn’t look very old (last commit was 9 months ago), and seems to mention a good list of gotchas in https://github.com/trilemma-dev/SwiftAuthorizationSample#installing-a-helper-tool https://github.com/trilemma-dev/SwiftAuthorizationSample#ins....
- haneenmahdin 4y agothanks :)! this is so helpful