Since the latest version of Xcode requires macOS Sonoma, I would recommend getting a new Mac that will be capable of running the newer OS's. Unless you need to run an Intel CPU, I would recommend going with a new Mac that has an M2 or M3 chip.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.