I use TexStudio for one of my books.
I use xelatex in both my windows and mac
In TexStudio open your settings and under xelatex change the line to this for windows:
xelatex.exe -synctex=1 -interaction=nonstopmode -output-driver=”xdvipdfmx.exe -q -E -V 6″ %.tex
or this for Mac:
xelatex -synctex=1 -interaction=nonstopmode -output-driver=”xdvipdfmx -q -E -V 6″ %.tex
sometimes you will have to add the full path for Mac (mine is \usr\bin\xelatex). Â With Windows I use MikTex so it installs the path automatically for me.