File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,17 @@ function Approve-XcodeLicense {
126126 [string ]$Version
127127 )
128128
129+ $os = Get-OSVersion
130+
129131 $XcodeRootPath = Get-XcodeRootPath - Version $Version
130132 Write-Host " Approving Xcode license for '$XcodeRootPath '..."
131133 $xcodeBuildPath = Get-XcodeToolPath - XcodeRootPath $XcodeRootPath - ToolName " xcodebuild"
132- Invoke-ValidateCommand - Command " sudo $xcodeBuildPath -license accept" - Timeout 15
134+
135+ if ($os.IsVentura -or $os.IsVenturaArm64 ) {
136+ Invoke-ValidateCommand - Command " sudo $xcodeBuildPath -license accept" - Timeout 15
137+ } else {
138+ Invoke-ValidateCommand - Command " sudo $xcodeBuildPath -license accept"
139+ }
133140}
134141
135142function Install-XcodeAdditionalPackages {
You can’t perform that action at this time.
0 commit comments