xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

Incorrectly lists beta number #299

Open ilyannn opened 6 years ago

ilyannn commented 6 years ago

My Xcode beta version: Version 10.0 beta 2 (10L177m)

xcversion output lists it incorrectly as beta 5:

➜ xcversion list
[...]
9.1
9.2
9.3
9.3.1
9.4
9.4.1 (installed)
10 beta 5 (installed)
mokagio commented 6 years ago

I'm seeing something similar.

I have beta 5 installed, and xcversion list shows beta 6 as the installed one.

screen shot 2018-08-14 at 8 28 46 am

Worth pointing out that beta 6 is the latest available beta one on the Developer Portal download page at the time of this writing.

I'm using version 2.4.4 of the Gem, which is the latest one at the time of this writing. (Although version.rb has 2.4.3 🤔).

mokagio commented 6 years ago

After having had a quick look around PRs and Issues I think the following issues are somehow related to this:

Also, the logic to mark a beta as installed in the list has been added in this recent PR. It might be a good place to start investigating how to solve the issue of betas not being identified correctly and therefore not updating.

Finally worth mentioning what @KrauseFx says in this comment

Apple only provides the most recent beta

AndreasBS commented 6 years ago

I'm seeing the same thing. It seems that running 'xcversion update' updates the list of available versions (as expected), but shows the latest beta version as installed, even though the installed version is actually older (which is a bug IMO).

Is there a way to actually update the beta to the latest version using 'xcversion'? So far, my workaround has been an uninstall (xcversion uninstall 10.0) followed by a new install.

iosdevben commented 5 years ago

The output I'm seeing today:

11 GM Seed 2 (installed)
11 Beta 7 (installed)
11 Beta 6 (installed)

I have 11 GM Seed 1 installed and no betas.