The problem is a structural one. There's more demand and no increasing supply of housing in SF:
http://www.theatlanticcities.com/housing/2013/10/san-francis...
The debate about whether ___Group X/Y/Z____ needs to flee is a false one -- just build more housing that will accommodate all types of people who want to stay.
To do that, the NIMBY laws and once-romanticized ideal in SF that prevent building up need to change.