If you only use it for occasional ios dev, rather get a mac mini. As a bonus, when your done with it, put asahi linux on it and itd be a great home server.
There's a big server rack at home with multiple servers, so the Linux server part isn't a draw in my case.