-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 11.4 beta 3 installs instead of 11.4 GM #381
Comments
@OdNairy Navigate to Below line 384 ( put the following: Note that this will break the ability to install beta versions in future until you install a new version of Also check a relevant issue's thread. |
I think the problem is here: xcode-install/lib/xcode/install.rb Lines 169 to 172 in 18c402c
It's matching the version too soon. The code shows that name match has the highest priority but the version is matched before it has a chance to find name match. My fix would be: seedlist.each do |current_seed|
return current_seed if current_seed.name == version
end
seedlist.each do |current_seed|
return current_seed if parsed_version && current_seed.version == parsed_version
end |
/cc @joshdholtz |
@robertwijas Awesome. Possibly you can make a Pull Request with your changes? |
It was finding a beta version despite the release one being already available (11.4 beta instead of 11.4). Now it tries to match the name first and when nothing matches it falls back to matching version. Resolves xcpretty#381 Solution proposed here: xcpretty#381 (comment).
Done 🎉 |
I'm trying to install |
|
Hi, @edulpn |
ah, makes sense... sorry guys, thought it was already merged, my bad! |
It was finding a beta version despite the release one being already available (11.4 beta instead of 11.4). Now it tries to match the name first and when nothing matches it falls back to matching version. Resolves xcpretty/xcode-install#381 Solution proposed here: xcpretty/xcode-install#381 (comment).
xcversion list
presents a list with "11.4" and "11.4 beta 3". However, withxcversion install "11.4"
it downloads and installs beta 3 (11N132i
build number).The problem was reproduced twice on the same mac.
The text was updated successfully, but these errors were encountered: