xcpretty / xcode-install

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

No simulators listed for Xcode 10 betas #294

Closed mjm closed 6 years ago

mjm commented 6 years ago

xcversion simulators does not list any available simulator runtimes for the Xcode 10 beta versions:

$ xcversion simulators
Xcode 10.0 (/Applications/Xcode-10.app)

This is not expected. Many simulator runtimes are available to install from the Xcode 10 preferences.

joshenders commented 6 years ago

This is true with Xcode beta 4 as well.

Repro:

xcversion install '10 beta 4'
xcversion update
xcversion simulators
Halle commented 6 years ago

I've been seeing this one as well. Thanks!

mjm commented 6 years ago

I've been looking at this, at first thinking that maybe Apple changed the download URL for the list of simulator packages, but I confirmed with Charles Proxy that's not the case.

Instead, it looks like that URL contains the three-component version number of Xcode, and the logic for figuring that out in xcode-install is a little too clever for its own good 😉: https://github.com/KrauseFx/xcode-install/blob/master/lib/xcode/install.rb#L597

I think this is producing a version number of "1.0.0.0" instead of "10.0.0". I'll see if I can sort that out and open a PR.

mjm commented 6 years ago

This should be fixed by #296.

KrauseFx commented 6 years ago

Thanks, just shipped a new release 💯

joshenders commented 6 years ago

Thank you!

Halle commented 6 years ago

Thank @mjm and @KrauseFx !