Use homebrew formula of emacs head.
https://github.com/d12frosted/homebrew-emacs-plus
brew tap d12frosted/emacs-plus
brew install emacs-plus@28 # Change the 28 part to different version you want to install.
brew install emacs-plus@28 --with-native-comp