I upgraded my Mac to the OS X EI Capitan a few days ago. And now TeXShop is not working. When I try to typeset it, the console shows the following error:
xelatex: command not found.
Following a previous answer, I went to Preferences-->Engine
and changed the path of (pdf)TeX from
/usr/texbin
to
/Library/TeX/texbin
But the error was still the same.
Then, I also tried to change accordingly the path for the Distiller ghostscript from
/usr/local/bin
to
/Library/TeX/local/bin
But still, all remains the same.
How can I fix it?