I am trying to get user permission in order uninstall an application. In order to get the rights. I am following this article published by Apple.
The article is using this library
#include <ServiceManagement/ServiceManagement.h>
What I am Doing? Github Project: Here
Error
Error Domain=CFErrorDomainLaunchd Code=2 "The operation couldn’t be completed. (CFErrorDomainLaunchd error 2.)