Yes, you can do this, but you must have different sections on your Mac, and when you go to the wizard, change the default location to a specific location in this new section, then you can use two Xcode for earlier and latest versions, as you want
source
share