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.
Open
.zshrcfilevim ~/.zshrcAdd an alias at the bottom.
alias xcode="open -a Xcode"Source
.zshrcor relaunch the terminalsource ~/.zshrcRun the command using the alias.
xcode example.xcworkspace