Unable to launch my application before user login - Domain does not support specified action
My application is failing to start with the error "Domain does not support specified action". This happens only when I try to start my application after reboot and before user sign-in. After reboot, I connect to it via ssh and then try to start my application using a CLI.
This is the complete error:
Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600001f24b70 {Error Domain=OSLaunchdErrorDomain Code=125 "Domain does not support specified action" UserInfo={NSLocalizedFailureReason=Domain does not support specified action}}}
It seems like some security policy is preventing launching my application before user sign-in, but I cannot figure out what it is. Appreciate any help if any one has encountered this and know what policy/restriction is in play here. Thank you.