diff --git a/images/macos/provision/core/xcode.ps1 b/images/macos/provision/core/xcode.ps1 index 802bb9af4..2b0a709dc 100644 --- a/images/macos/provision/core/xcode.ps1 +++ b/images/macos/provision/core/xcode.ps1 @@ -47,6 +47,16 @@ $xcodeVersions | ForEach-Object { } } +$xcodeVersions | ForEach-Object { + if ($_.link.StartsWith("14.")) { + Write-Host "Installing Simulator Runtimes..." + + # tvOS and watchOS simulators are not included by default + $xcodebuildPath = Get-XcodeToolPath -Version $_.link -ToolName "xcodebuild" + Invoke-ValidateCommand "$xcodebuildPath -downloadAllPlatforms" + } +} + Write-Host "Rebuilding Launch Services database ..." $xcodeVersions | ForEach-Object { Rebuild-XcodeLaunchServicesDb -Version $_.link