MacTeX Error: XeLaTeX: command not found

Now here is the thing. I upgraded my Mac to the OS X EI Capitan a few days ago. And now MacTeX is not working. When I try to typeset it, the console shows the following error: xelatex: command not