Skip to content

Troubleshooting the launch of local user XPC Launch Agent — by ktam and wjens on Apple Developer Forums

advancedforumLink only (©)

A 2015 thread with practical launchd debugging: a replier found that using ~ in ProgramArguments stopped the agent from starting while a full path worked, that the path should point at the executable inside the bundle, and the thread shows inspecting state with launchctl list, print and blame. Aimed at XPC agents, and the home-directory problem never got a firm root cause.

Quick steps

  1. launchctl print gui/<uid>/<label>
  2. launchctl blame gui/<uid>/<label>

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full thread on developer.apple.com

Source: Troubleshooting the launch of local user XPC Launch Agent by ktam and wjens on Apple Developer Forums. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

launchdlaunchctldebuggingmacos

More in Scheduling (Task Scheduler, launchd, cron)

Run bash (.sh) via launchd using a plist in /Library/LaunchAgents — by VikingOSX and etresoft on Apple Community

intermediateforum

VikingOSX shows a working LaunchAgent for a shell script: plist in ~/Library/LaunchAgents with 644 permissions, Label, RunAtLoad, StartInterval and full paths only. The original poster got theirs working after moving the script out of ~/Documents, and etresoft points to privacy permissions instead, noting shell scripts silently fail without Full Disk Access.