File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,10 @@ function Approve-XcodeLicense {
124124 $XcodeRootPath = Get-XcodeRootPath - Version $Version
125125 Write-Host " Approving Xcode license for '$XcodeRootPath '..."
126126 $xcodeBuildPath = Get-XcodeToolPath - XcodeRootPath $XcodeRootPath - ToolName " xcodebuild"
127- Invoke-ValidateCommand " sudo $xcodeBuildPath -license accept"
127+ try {
128+ Invoke-Expression - Command " sudo $xcodeBuildPath -license accept" 2>&1 | Out-Null
129+ } catch { }
130+
128131}
129132
130133function Install-XcodeAdditionalPackages {
Original file line number Diff line number Diff line change 33 "default" : " 14.2" ,
44 "x64" : {
55 "versions" : [
6- { "link" : " 15.0" , "version" : " 15.0.0-Beta.2+15A5161b " },
6+ { "link" : " 15.0" , "version" : " 15.0.0-Beta.5+15A5209g " },
77 { "link" : " 14.3.1" , "version" : " 14.3.1+14E300c" },
88 { "link" : " 14.3" , "version" : " 14.3.0+14E222b" },
99 { "link" : " 14.2" , "version" : " 14.2.0+14C18" },
1212 },
1313 "arm64" :{
1414 "versions" : [
15- { "link" : " 15.0" , "version" : " 15.0.0-Beta.2+15A5161b " },
15+ { "link" : " 15.0" , "version" : " 15.0.0-Beta.5+15A5209g " },
1616 { "link" : " 14.3.1" , "version" : " 14.3.1+14E300c" },
1717 { "link" : " 14.3" , "version" : " 14.3.0+14E222b" },
1818 { "link" : " 14.2" , "version" : " 14.2.0+14C18" },
You can’t perform that action at this time.
0 commit comments