I can't find CFErrorDomainLaunchd in any of the headers. I used the find command to grep every header file in the 10.11 SDK.
I also tried google:
site:opensource.apple.com CFErrorDomainLaunchd
SMJobBless passes the error back when I try to install my helper app and its launchd plist.
I'm quite puzzled because that installation was working just fine yesterday. I hereby resolve to check my code in far more frequently than I presently do.
Boolean success;
CFErrorRef error;
success = SMJobBless(
kSMDomainSystemLaunchd,
CFSTR("com.frescologic.FL2000.Uninstaller.UninstallerHelper"),
self->_authRef,
&error ); <-- This is CFErrorDomainLaunchd error 2
I am eternally in your debt.
I'm developing - or trying to develop - an uninstaller for a driver. It will also uninstall a user space program as well as the LaunchAgent plist that OS X uses to start or stop that user space program.