From 59cd4c1affed0298c18be6fada73b84785efbbe4 Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Fri, 26 Aug 2022 10:29:28 +0200 Subject: [PATCH] [macOS] Install tvOS and watchOS runtime sims (#6140) --- images/macos/provision/core/xcode.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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