xcpretty / xcode-install

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

Simulators do not appear to be installed after a "successful install" #442

Open andrewhavens opened 2 years ago

andrewhavens commented 2 years ago

I am running Xcode 13 beta 5. I tried installing some older, iOS 11.4 simulators:

xcversion simulators --install='iOS 11.4'

It completes successfully. xcversion simulators says that it was installed:

iOS 11.4 Simulator (installed)

Xcode does seem to be aware that the iOS 11.4 simulators were installed:

Screen Shot 2021-08-26 at 10 56 33 AM

However, xcrun simctl list does not show any 11.4 simulators:

...
== Devices ==
-- iOS 11.4 --
-- iOS 15.0 --
    iPhone 8 (ED680A86-07C3-4BBB-9C5C-F13217B57E97) (Shutdown) 
    iPhone 8 Plus (9517AFD7-7D69-4517-BC22-F94A4F3AC7F9) (Shutdown) 
...

If I try running the install command again, I get an error that they are already installed:

[!] iOS 11.4 Simulator is already installed.

What should I do?

andrewhavens commented 2 years ago

Maybe I was mistaken to assume that xcode-install would automatically create the simulators after the install command. I was able to manually create a simulator with this command:

# xcrun simctl create [name] [device] [runtime]
xcrun simctl create 'iPhone 8 (iOS 11.4)' 'iPhone 8' com.apple.CoreSimulator.SimRuntime.iOS-11-4