diff --git a/xcodeproj/internal/templates/bazel_build.sh b/xcodeproj/internal/templates/bazel_build.sh index 5e81446fa..420f8aaf3 100755 --- a/xcodeproj/internal/templates/bazel_build.sh +++ b/xcodeproj/internal/templates/bazel_build.sh @@ -79,7 +79,7 @@ readonly bazel_cmd readonly base_pre_config_flags=( # Be explicit about our desired Xcode version - "--xcode_version=$XCODE_PRODUCT_BUILD_VERSION" + "--xcode_version=$DEVELOPER_DIR" # Set `DEVELOPER_DIR` in case a bazel wrapper filters it "--repo_env=DEVELOPER_DIR=$DEVELOPER_DIR"