Why do my mac keep removing my Xcode version whenever a new version is available?

This is completely frustrating and looks like intrusion on my privately owned Mac.

From a general point of view, this is not acceptable some actions are initiated on my Mac by someone else than myself.

For development, i have installed Xcode. Every 3 or 6 months, all my environment stop working as Xcode disappear from my Mac without me being asked or informed and then checking on App store , it always correponds to a new version of Xcode being unavailable.

This is an unbearable way of forcing user to update to a new version and quite bothering. How to stop such outside action to be initiated on my device?

I always download Xcode from https://developer.apple.com/download/applications/ rather than the App Store, and then I change the name, for instance Xcode14.2 instead of just Xcode. So I can have several different versions of Xcode, and I’ve never had one of them disappear.

Why do my mac keep removing my Xcode version whenever a new version is available?
 
 
Q