Skip to content

Commit 37b6325

Browse files
[macOS] do not list Xcode-install in sw report on OS13 (#8370)
1 parent e72f975 commit 37b6325

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

images/macos/software-report/SoftwareReport.Xcode.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ function Build-XcodeSupportToolsSection {
236236
$xcversion = Run-Command "xcversion --version" | Select-String "^[0-9]"
237237

238238
$toolNodes += [ToolVersionNode]::new("xcpretty", $xcpretty)
239-
$toolNodes += [ToolVersionNode]::new("xcversion", $xcversion)
239+
if ($os.IsBigSur -or $os.IsMonterey) {
240+
$toolNodes += [ToolVersionNode]::new("xcversion", $xcversion)
241+
}
240242

241243
$nomadOutput = Run-Command "gem list nomad-cli"
242244
$nomadCLI = [regex]::matches($nomadOutput, "(\d+.){2}\d+").Value

0 commit comments

Comments
 (0)