My iMac is getting old (about 2011) as I'm waiting for the new M1 27 inch iMac, and can't update OSX beyond 10.12.6 (Sierra). To keep the machine usable I installed an SSD which works well, but I've hit a problem trying to re-install Xcode. The latest version in the App Store will not download and I've tried a number of earlier versions of Xcode but none will start up.
The earliest I tried was Xcode 4.6.3 which requires Mountain Lion but when I try to run it I get "You can’t use this version of the application “Xcode” with this version of macOS. You have You have “Xcode” 4.6.3."
I've tried a number of later versions, such as 5;11 but these don't seem to indicate an OSX version and none seems to run.
Can someone tell me which version of Xcode I should use or is there something else amiss? Prior to switching to the SSD I could use and update Xcode without issue (last one about three years ago).
Thanks