xcpretty / xcode-install

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

Cannot select "10 beta 6" after installation #304

Open fschwahn opened 6 years ago

fschwahn commented 6 years ago

I installed 10 beta 6 using xcversion install "10 beta 6", which worked and 10 beta 6 was selected. Afterwards I switched back using xcversion select 9.4.1, which also worked. Then I tried selecting 10 beta 6 again, and now it says 10 beta 6 is not installed.

xcversion install "10 beta 6" 
# worked, 10 beta 6 selected
xcversion select 9.4.1
# works, 9.4.1 selected
xcversion select "10 beta 6" 
# [!] Version 10 beta 6 not installed.
xcversion list
# ...
# 9.4
# 9.4.1 (installed)
# 10 beta 6 (installed)
ykhandelwal913 commented 6 years ago

@KrauseFx this is happening because of apple. Apple first released with name "10 Beta 6" so xcversion update gives us "9.4.1 (installed) 10 Beta 6" But later apple has changed it to "10 beta 6" and now if we give 10 beta 6, xcversion fails '[!] Version 10 beta 6 doesn't exist.'

Any idea how can we fix the issue?

ykhandelwal913 commented 6 years ago

i can't install 10 beta 6.

olivereisenhut commented 6 years ago

Got the same issue while trying to uninstall the beta so I debugged the whole thing. When you are calling xcversion list it shows 10 beta 6 but if you are logging puts @installer.installed_versions.map { |bla| bla.version } it will show you that you installed version 10.0. Maybe show the real version in brackets behind the 10 beta 6?

ylluminarious commented 6 years ago

I had the same issue but was able to solve it by running:

$ xcversion select 10.0

I got the idea to do that from @olivereisenhut; thank you!

acevif commented 6 years ago

I wanted to select 10 GM seed but failed like below.

$ bundle exec xcversion select '10 GM seed' --symlink
[!] Version 10 GM seed not installed.

Thank you @olivereisenhut's post, it worked for me.

$ bundle exec xcversion select 10.0