> but now I don't have a job so I can't afford even a basic apartment what do we do with our society?
Apartments aren't land, they're buildings. Buildings can be made arbitrarily tall; if we built tall buildings we'd have more housing units than people long before we ran out of land.
So if there is a machine that can build buildings for free, apartments should be cheap. If there isn't a machine that can build buildings for free, get a job building buildings for money.
Even if 100% automated, there might still be a residual cost to building as it needs energy (assuming than raw material is free). I do not think that because the building would be not free, it would allow human to compete (too slow, inaccurate, etc.)
Apartments aren't land, they're buildings. Buildings can be made arbitrarily tall; if we built tall buildings we'd have more housing units than people long before we ran out of land.
So if there is a machine that can build buildings for free, apartments should be cheap. If there isn't a machine that can build buildings for free, get a job building buildings for money.