If you have a .xcode-version with e.g. "12.4", running xcversion install doesn't identify the version correctly, meaning that if you already have Xcode 12.4 installed, it will attempt to install again anyway.
However if you pass the argument explicitly xcversion install 12.4, it will identify you already have it installed and skip installation accordingly.
If you have a
.xcode-version
with e.g. "12.4", runningxcversion install
doesn't identify the version correctly, meaning that if you already have Xcode 12.4 installed, it will attempt to install again anyway.However if you pass the argument explicitly
xcversion install 12.4
, it will identify you already have it installed and skip installation accordingly.