diff --git a/xcodeproj/internal/templates/bazel_build.sh b/xcodeproj/internal/templates/bazel_build.sh index 6fc791abf0..3daf791792 100755 --- a/xcodeproj/internal/templates/bazel_build.sh +++ b/xcodeproj/internal/templates/bazel_build.sh @@ -69,7 +69,12 @@ fi readonly bazelrcs readonly bazel_cmd=( - env + env -i + "DEVELOPER_DIR=$DEVELOPER_DIR" + "HOME=$HOME" + "TERM=$TERM" + "TMPDIR=$TMPDIR" + "USER=$USER" %bazel_env% "%bazel_path%" diff --git a/xcodeproj/internal/templates/runner.sh b/xcodeproj/internal/templates/runner.sh index bee862b9d2..e2cd9234b9 100644 --- a/xcodeproj/internal/templates/runner.sh +++ b/xcodeproj/internal/templates/runner.sh @@ -179,7 +179,12 @@ common:rules_xcodeproj --repo_env=XCODE_VERSION=%xcode_version% EOF bazel_cmd=( - env + env -i + "DEVELOPER_DIR=$developer_dir" + "HOME=$HOME" + "TERM=$TERM" + "TMPDIR=$TMPDIR" + "USER=$USER" "${envs[@]}" "$bazel_path"