xcode-install icon indicating copy to clipboard operation
xcode-install copied to clipboard

xcversion install reinstalls installed versions

Open mariohahn opened this issue 6 years ago • 3 comments

I installed Xcode with xcversion install 10 if i check the installed versions with xcversion installed Xcode 10 is listed as installed but if I enter xcversion install 10 it is redownloading Xcode every time on our runner.

Version: xcode-install 2.4.4

mariohahn avatar Sep 18 '18 13:09 mariohahn

Found the issue: its installed as 10.0 if I install it with xcversion install 10 it is stored as 10.0 So it knows that Xcode 10 is available, and downloads it. But it is stored as Xcode 10.0 and after the install he can't find it anymore.

mariohahn avatar Sep 18 '18 13:09 mariohahn

When I do xcversion install 10 it is stored as Xcode-10.app. But when I do xcversion select 10 it tells me that the version is not installed. When I do xcversion select 10.0 it works fine. The difference I see with @mariohahn is the filename of my Xcode app.

jschmid avatar Sep 19 '18 06:09 jschmid

Just ran into this bug.

  • Apple lists the version as "10".
  • It is installed to /Applications/Xcode-10.app
  • xcversion list shows "10".

So, where is "10.0" coming from?

If xcversion is internally representing the value as "10.0", that is unfortunately inconsistent with the standard representation of the version and leads to problems.

sdarwin avatar Apr 22 '21 23:04 sdarwin