xcodebuild -downloadPlatform Or, for more detail:
#!/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.
sudo xcodebuild -downloadPlatform iOS To download a specific version:
xcrun simctl runtime list -a To see downloadable but not yet installed runtimes: