xcodebuild -downloadPlatform Or, for more detail:
sudo xcodebuild -downloadPlatform iOS To download a specific version: xcode download simulators
xcodebuild -downloadPlatform iOS -version 17.5 Or download all available runtimes for a platform: xcodebuild -downloadPlatform Or
Apple’s Xcode Simulator is an essential tool for testing iOS, iPadOS, watchOS, tvOS, and visionOS apps without needing physical devices. However, Xcode doesn’t always install every simulator version by default. Whether you need to test against older OS versions or the latest betas, you’ll need to manually download additional simulators. xcode download simulators
xcrun simctl runtime delete "iOS 17.5" To list runtime identifiers first:
xcrun simctl runtime list -a To see downloadable but not yet installed runtimes: