The second article kind of makes it clear that there are two governments at work here, and they are at odds.
San Fran approves office space, but no housing. Thus people live in San Jose (ironically where apple was founded originally).
That said… I don’t really see how this relates to homelessness in San Fran as according to the article Apple workers don’t live their anyways.
It’s a bit of a reach to say Apple is to blame for building an office building in the commercial district of the hottest tech city on the west coast after getting government approval.
The SF government ought to either approve more housing, or reduce economic pressure by refusing office spaces. That it does neither is a systemic failure.