Fixing Bootstrap Errors

I’ve been having this error… A LOT…:

“Couldn’t register com.yourcompany.yourapp with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.”

The bad side of this is that.. ps aux will not show anything useful. Thankfully, Mike Ash has solved this… i’m pasting below his script:

[cc lang=”bash”]
launchctl list|grep UIKitApplication|awk ‘{print $3}’|xargs launchctl remove

Source: Mike Ash Blog