My Mac has been freezing lately so I spent some time trying to figure out why. There is a system process called LaunchServiceDaemon or /usr/libexec/lsd. It was using 100% CPU. Using information from this thread: What is the “lsd” process… and this one: /usr/libexec/lsd using 100% of CPU I found that lsd was trying to create a signature for apps in my Elixir projects. (I think because the names end in .app
.) So lsd
was trying to create signing signatures for hackney.app
and mint.app
. Once I deleted the _bulid
directory from my elixir projects my Mac stopped freezing and CPU usage went to zero. You can check your own Mac like:
ps aux | grep lsd
look for the line with runAsRoot
in it and find it’s PID then run:
sudo lsof -p PID
And look for a line includes an .app
file in one of your projects like:
lsd 386 root 3r REG 1,13 2686 77125471 /Users/someone/work/a_project/_build/prod/lib/tesla/ebin/tesla.app
So my question is how do I keep lsd
from trying to create a signature for my elixir generated app files?