[macOS] Install tvOS and watchOS runtime sims (#6140)

This commit is contained in:
Mikhail Koliada
2022-08-26 10:29:28 +02:00
committed by GitHub
parent bf3b49d23b
commit 59cd4c1aff

View File

@@ -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