mirror of
https://github.com/actions/runner-images.git
synced 2026-01-03 16:49:11 +08:00
Fix Xcode simulator naming at the end of image generation (#7181)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user