I recently upgraded from Mac OS X 10.7 to Mac OS X 10.10, and I'm finding that running XeLaTeX in TeXworks no longer works. It does work, though, if I run XeLaTeX from the terminal. The first difference in the outputs of these two cases is that in TeXworks I get a
sh: xdvipdfmx: command not found
error. In TeXworks it later crashes:
[2 Process crashed
while the command-line XeLaTeX runs fine. I've run "which xdvipdfmx" from the terminal and it shows /usr/texbin/xdvipdfmx. /usr/texbin/ is in the list of paths listed in Preferences under Typesetting, though, so I'm not sure why TeXworks can't find it. I've tried replacing TeXlive with the most recent version I could find but it didn't solve the problem.
Any ideas on why XeLaTeX isn't working in TeXworks?