XQuartz El Capitan not setting $DISPLAY for a Vagrant built VM
I had this same issue but realized I never restarted OS X after installing XQuartz. Once I rebooted, XQuartz was correctly detected and X11 forwarding worked.