Fix Xcode simulator naming at the end of image generation (#7181)

This commit is contained in:
Maxim Lobanov
2023-03-01 10:43:47 +01:00
committed by GitHub
parent 6980b00031
commit fec7951493
8 changed files with 249 additions and 14 deletions

View File

@@ -33,8 +33,12 @@ $xcodeVersions | ForEach-Object -ThrottleLimit $threadCount -Parallel {
Write-Host "Configuring Xcode versions..."
$xcodeVersions | ForEach-Object {
Write-Host "Configuring Xcode $($_.link) ..."
Invoke-XcodeRunFirstLaunch -Version $_.link
Install-AdditionalSimulatorRuntimes -Version $_.link
}
Invoke-XcodeRunFirstLaunch -Version $defaultXcode
Write-Host "Configuring Xcode symlinks..."
@@ -47,16 +51,6 @@ $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