
#!/bin/bash # Install required iOS simulators for CI xcodebuild -downloadPlatform iOS -version 17.5 xcodebuild -downloadPlatform iOS -version 16.4 xcrun simctl list devices | grep "iPhone" Final Thoughts Downloading simulators in Xcode is straightforward once you know where to look. The Platforms tab inside Xcode Settings is your best friend for interactive use, while xcodebuild shines for automation.
xcodebuild -downloadPlatform iOS -version 17.5 Or download all available runtimes for a platform: xcode download simulators
Remember to periodically audit your installed simulators – old runtimes from two major OS versions ago can usually be removed safely, freeing up valuable SSD space for your next project. Need to test on a specific device type (iPhone 15 Pro, Apple Watch Ultra)? Once the runtime is downloaded, open Window → Devices and Simulators in Xcode to create any simulated device you need. Need to test on a specific device type