[macOS] Add Xcode 26.1.1 without runtimes (#13326)

Co-authored-by: alexey-ayupov <alexey-ayupov@github.com>
This commit is contained in:
Erik Bershel
2025-11-19 19:06:51 +01:00
committed by GitHub
parent fe2c39a3ea
commit dad935f2fe
6 changed files with 59 additions and 72 deletions

View File

@@ -320,19 +320,10 @@ function Invoke-ValidateCommand {
function Update-DyldCache {
param (
[Parameter(Mandatory)]
[array] $XcodeVersions
[string] $Version
)
# Find the latest stable Xcode version (excluding beta and RC versions)
$latestStableXcode = $XcodeVersions | Where-Object {
-not ($_.link.Contains("beta") -or $_.link.Contains("Release_Candidate") -or $_.link.Contains("_RC"))
} | Sort-Object { [version]($_.version -split '\+')[0] } -Descending | Select-Object -First 1
if ($latestStableXcode) {
Write-Host "Updating dyld shared cache for Xcode $($latestStableXcode.link)..."
Switch-Xcode -Version $latestStableXcode.link
Invoke-ValidateCommand "xcrun simctl runtime dyld_shared_cache update --all"
} else {
Write-Host "No stable Xcode version found for dyld cache update."
}
Write-Host "Updating dyld shared cache for Xcode $Version ..."
Switch-Xcode -Version $Version
Invoke-ValidateCommand "xcrun simctl runtime dyld_shared_cache update --all"
}