[Mac OS] Adapt code for Mac OS 14 image (#8760)

This commit is contained in:
Vasilii Polikarpov
2023-11-09 11:29:07 +01:00
committed by GitHub
parent 433178adf5
commit 01fe87da2e
20 changed files with 140 additions and 110 deletions

View File

@@ -132,7 +132,7 @@ function Approve-XcodeLicense {
Write-Host "Approving Xcode license for '$XcodeRootPath'..."
$xcodeBuildPath = Get-XcodeToolPath -XcodeRootPath $XcodeRootPath -ToolName "xcodebuild"
if ($os.IsVentura -or $os.IsVenturaArm64) {
if ($os.IsVentura -or $os.IsVenturaArm64 -or $os.IsSonoma) {
Invoke-ValidateCommand -Command "sudo $xcodeBuildPath -license accept" -Timeout 15
} else {
Invoke-ValidateCommand -Command "sudo $xcodeBuildPath -license accept"