I'm trying to create a very simple project where an application contains a helper application and the helper application is defined as a LaunchAgent by the main application.
So far, when I call agentServiceWithPlistName:, and then request the status, I get the value 3 (i.e.SMAppServiceStatusNotFound).
I checked that the main .app bundle did not have obvious issues:
- there is definitely a .plist in Contents/Library/LaunchAgents.
- the .plist definitely defines the BundleProgram value.
- there is definitely a .app helper application and the relative path pointed by the BundleProgram key looks definitely correct.
[Q] Are there some useful logs provided by the SMAppService APIs/framework that can provide an idea why a service is not found?
I haven't seen any so far in Console.app. I have not seen so far a hint in the documentation that would suggest that this SMAppService mechanism requires an app to be notarized or codesigned with a level above (Run locally).
Extra Question: Is there an official example for these new APIs?