[macOS] Force Xcode 16.2 to install correct runtimes for visionOS and iOS

This commit is contained in:
Erik Bershel
2025-03-03 20:04:48 +01:00
parent f0e516bc43
commit b984947b8f
3 changed files with 5 additions and 5 deletions

View File

@@ -194,7 +194,7 @@ function Install-AdditionalSimulatorRuntimes {
}
# Validate and install specified runtimes
$invalidRuntimes = $Runtimes | Where-Object { $_ -notin $validRuntimes }
$invalidRuntimes = $Runtimes | Where-Object { $_ -notmatch "^($( $validRuntimes -join '|' ))(\s.*|$)" }
if ($invalidRuntimes) {
throw "Error: Invalid runtimes detected: $($invalidRuntimes -join ', '). Valid values are: $validRuntimes."
}