I aslo tried to remove sandbox for the GUI, but it don't resolve the issue, so I guess it answer the question:
But what about the GUI application? It is sandboxed right?
Post
Replies
Boosts
Views
Activity
For instance I took a look at this project that uses : https://github.com/zeek/zeek-agent-v2/blob/af61c534f6287438c923a0296d3225783f16017a/src/platform/darwin/ZeekAgent.app/Info.plist.agent.in#L27-L28
It uses the app identifier: https://github.com/zeek/zeek-agent-v2/blob/af61c534f6287438c923a0296d3225783f16017a/src/platform/darwin/ZeekAgent.app/entitlements.plist.agent#L5-L6
Note that I tried both:
tonygo.TestES
tonygo.TestES.Extension
I think i should focus more on this error: Unable to register Error Domain=SMAppServiceErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedFailureReason=Operation not permitted}
Did not resolve the issue :) haha
For instance I noticed that I use BundleProgram in the Agent plist and before I used: Program
Thanks for you quick answer @eskimo :) It is always a pleasure to see your answers. I fixed app group mismatch: https://github.com/tony-go/NetworkMonitor/tree/sma-app-service
But I have the same errors ... It seems that the agent is not started properly.
I'll probably explore cs.github.com and see if I could find an macOS project that starts an agent with SMAppService.
--- Deleted comment ------
Unfortunately, it still does not work :/