I made the dreadful mistake of upgrading to Mac OSX Catalina this week, while in the midst of some programming projects, and all of a sudden Emacs stopped working.

$which emacs$

2. update my .bash_profile file in my home directory so that my EDITOR now reads:
export EDITOR="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"