I want to install an older simulator runtime with command line using xcodebuild
, following instructions from this article: https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
As of October 2024, this article provides an example:
xcodebuild -downloadPlatform iOS -buildVersion 16.0 -exportPath ./SimulatorRuntimes/
However when I run this command in the terminal, it fails with error:
xcodebuild: error: invalid option '-buildVersion'
Has this option been removed? What's the correct way to install an arbitrary non-latest simulator runtime with command line?
I know I can download the runtime from the website and then import it, or I can use Xcode's GUI for that, but my eventual goal is to automate it with a single shell script.
I'm using Xcode 16.0 (16A242d) on macOS Sequoia 15.0.1.
Thanks in advance for your help!