From 420bab0024eaed914c77b3173e001bf1c0169379 Mon Sep 17 00:00:00 2001 From: Sitaktif Date: Fri, 19 Apr 2024 15:51:34 +0100 Subject: [PATCH] fix(docs): update Xcode Version Selection example Before this change, the `xcode_version` variable was evaluated to the same value as the `xcode_build_number` variable. This change instead assigns the XCode version to the `xcode_version` variable. --- doc/common_info.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/common_info.md b/doc/common_info.md index 092ce3f6b9..2963a8471b 100644 --- a/doc/common_info.md +++ b/doc/common_info.md @@ -506,7 +506,7 @@ bazelrc_lines=() if [[ $OSTYPE == darwin* ]]; then xcode_path=$(xcode-select -p) - xcode_version=$(xcodebuild -version | tail -1 | cut -d " " -f3) + xcode_version=$(/usr/bin/xcodebuild -version 2>/dev/null | head -1 | cut -d " " -f2) xcode_build_number=$(/usr/bin/xcodebuild -version 2>/dev/null | tail -1 | cut -d " " -f3) bazelrc_lines+=("startup --host_jvm_args=-Xdock:name=$xcode_path")