How do I downgrade the simulator in Xcode?

My app is working as expected in the simulator on iOS 12.1, but not on my iOS 11.x device, and it is just a layout issue. I'm not aware of any major changes in layout constraints from 11 to 12, so I'm perplexed... I upgraded an older device from iOS 10 to 12 and my app layout works on it, so it seems something changed between iOS 11 and 12 regarding layout, but I don't know what that is...


How can I get a simulator running iOS 11.x to debug? I'll start debugging on my actual 11.x device, but I would also like to know how to get a simulator running older iOS versions? xcodebuild -showsdks says I only have 12.1 iphone/simulator 12.1 -- how do I run 11.x in the simulator, or older iOS versions in general in the simulator?

Replies

You can download and install simulators all the way back to iOS 8.1. In Xcode:


  1. Xcode > Preferences.
  2. Select the "Components" tab.
  3. Mark the simulators you want.
  4. Press "Check and Install Now".

Thanks! Why isn't this in the Device / Simulators dialog.

What if the "Components" tab does not list any other simulator?
Is there a way to obtain them?
Is there a web link for that? My connection keeps breaking and it won't resume.