
launchctl bootstrap gui/501 over SSH: "Could not find domain for" and 125 on a headless Mac
The gui/UID launchd domain only exists after someone logs in at the Mac's GUI, so bootstrapping an agent there over SSH fails. Log in once (or enable automatic login) and install from a GUI Terminal, or run the service as a LaunchDaemon with UserName.




























