I am trying to install a helper tool via SMJobBless and I am getting the following error,
Error Domain=CFErrorDomainLaunchd Code=8 "The operation couldn’t be completed. (CFErrorDomainLaunchd error 8.)
I verified the code sign, plist of application and helper tool, copied the tool in launchServices and also linked the plists.
Can anyone please help me?
Thank you,
Find the tool SMJobBlessUtil.py in the (otherwise superseded sample code) SMJobBless sample code: https://developer.apple.com/library/archive/samplecode/SMJobBless/Introduction/Intro.html
NOTE: SMJobBless IS the correct way to bless jobs. The old way, AuthorizationExecuteWithPrivileges, is deprecated and will be actively shunned in the near future. The "SMJobBless" sample code is deprecated, because the following example code is superior in pretty much every way.
OK, get the tool, and now get the current example code: https://developer.apple.com/library/archive/samplecode/EvenBetterAuthorizationSample/Introduction/Intro.html
Use the SMJobBlessUtil.py script to verify and or set the Info.plist stuff inside your main program and helper.
Verify Following Things:
1.Code
2.Tools owned after installation field in info.plist(main app)
3.Clients allowed to add and remove tool field in helper info.plist.
4.Check MachServices filed in xxxxHelperTool-Launchd.plist.it should be