Downloading Xcode 16.0 related runtimes on CI

I'm trying to get our CI working to build our own machine image AMI descriptions. Part of that is to download the correct runtime versions so that we can pre-create the simulators we use for testing on these machine image descriptions.

When running the code like

xcodebuild -downloadPlatform <platform> -exportPath "$<temp_folder_path>"

Locally I get a result and download a runtime, but on CI I just get All available platforms are downloaded. Why is this message happening and how can I specify specific platforms to download over CI to configure our machine setup?

Downloading Xcode 16.0 related runtimes on CI
 
 
Q