Apple changed the default shell to ZSH. So I would like to run Xcode in the Terminal. So here is the brief instruction for you.
- Add an alias at the bottom.
alias xcode="open -a Xcode"
.zshrcor relaunch the terminal
- Run the command using the alias.