IWTL how to make friends and maintain relationships

I honestly don’t know the formula to maintaining adult friendships. If it’s with a guy I’m clearly not interested in, they end up catching feelings, while women friends ditch at the sight of authenticity. There’s literally no winning in this relationships game. Some practical advice would be nice.