Cannot start observer on macOS

I faced a problem with the Mac OSx Big Sur.
And these were the steps I successfully set up!
I uninstall the wxmac:

brew uninstall wxmac

and reinstalled to build wxmac locally instead of installing already built binary using the extra flag:

brew install --build-from-source wxmac

Update the plugin erlang for asdf:

asdf plugin-update erlang

skip the java dependency during installation use:
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"

and then install the last version of the Erlang:

asdf install erlang latest

and now when I try to run the :observer.start() it works!

6 Likes