After deleting all the Xcode projects and related project products and rebooting my machine several times, I noticed the LaunchAgent are still hanging around in launchctl. If I write launchctl print-disabled gui/$UID (or user/$UID) I can see all my testing service-ids
Basically, I would love to know the way to clean up after "myself" once an app is being uninstalled or has been uninstalled. I understand the OS cannot know if an app has been truly uninstalled (due to the issues described in your link); however, I would like to "liberate" those IDs (both launchAgent id and mach port ID). I have been reading launchctl man pages and searching on the internet and I am unable to figure out how to clean up that state.
The goal is not to clean up for clean up sake, but not being able to execute bundle LaunchAgents due to some weird error in launchctl which has no way to be fix is quite worrysome.
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: