All major economies have some problems. There are no binary switches to fix or unfix a problem, especially one as complex as homelessness.
There is one obvious, and effective, fix for homelessness. Provide homes. This would run into a plethora of issues, many political, some social, but it does solve a shit-ton of issues. When the homeless are provided with homes, they tend to have fewer emergency health interventions, fewer police interactions and cost society much less than leaving them homeless. But I cannot see a nation or a state which is still arguing over whether or not healthcare should bankrupt people will go the extra steps to provide the homeless with free accommodation, especially in SF.