xcpretty / xcode-install

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

xcversion simulators returns no results using Xcode 9.3 (beta 4) #263

Closed jshier closed 6 years ago

jshier commented 6 years ago

Trying to use xcversion to install all of my simulators and I get no results from xcversion simulators and attempting to install any always fails. Is this a change in Xcode 9.3 or perhaps something else?

timsutton commented 6 years ago

Can you paste some logs so we could try and see what the errors are and why they might be happening? Thanks!

jshier commented 6 years ago

What logs? There’s no output when I run xcversion simulators and the installation error is the standard not found error. What do you need?

timsutton commented 6 years ago

Afraid I can't reproduce this:

$ xcversion simulators
Xcode 9.3 (/Applications/Xcode-9.3.app)
iOS 8.1 Simulator (not installed)
iOS 8.2 Simulator (not installed)
iOS 8.3 Simulator (not installed)
iOS 8.4 Simulator (not installed)
iOS 9.0 Simulator (not installed)
iOS 9.1 Simulator (not installed)
iOS 9.2 Simulator (not installed)
iOS 9.3 Simulator (not installed)
iOS 10.0 Simulator (not installed)
iOS 10.1 Simulator (not installed)
tvOS 9.0 Simulator (not installed)
tvOS 9.1 Simulator (not installed)
tvOS 9.2 Simulator (not installed)
tvOS 10.0 Simulator (not installed)
watchOS 2.0 Simulator (not installed)
watchOS 2.1 Simulator (not installed)
watchOS 2.2 Simulator (not installed)
tvOS 10.1 Simulator (not installed)
iOS 10.2 Simulator (not installed)
watchOS 3.1 Simulator (not installed)
iOS 10.3.1 Simulator (not installed)
watchOS 3.2 Simulator (not installed)
tvOS 10.2 Simulator (not installed)
iOS 11.0 Simulator (not installed)
watchOS 4.0 Simulator (not installed)
tvOS 11.0 Simulator (not installed)
tvOS 11.1 Simulator (not installed)
watchOS 4.1 Simulator (not installed)
iOS 11.1 Simulator (not installed)
iOS 11.2 Simulator (not installed)
watchOS 4.2 Simulator (not installed)
tvOS 11.2 Simulator (not installed)

Tried the same thing when I had both 9.2 and the 9.3 beta 4 installed, and in that case I got the same listing for both.

When you tried to install, did you use the form xcversion simulators --install='<name>'? I'd tried it without the = after install and that triggered an error, which threw me at first as it's been a while since I've used it.

jshier commented 6 years ago

My output:

Machine:~ user$ xcversion simulators
Machine:~ user $ xcversion simulators --install='iOS 11.0'
[!] No simulator matching iOS 11.0 was found. Please specify a version from the following available simulators:
Machine:~ user $ xcversion selected
Xcode 9.3
Build version 9Q127n

Even adding --verbose didn't give me any additional output. So how can I debug this?

jshier commented 6 years ago

Okay, it seems that it was due to Spotlight not finding Xcode, despite selected working, installed and simulators did not. Both of those commands should have some sort of output when no versions of Xcode are found, especially if selected returns one.