File tree Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 4949if [[ -n " ${BAZEL_OUTPUTS_DSYM:- } " ]]; then
5050 cd " ${BAZEL_OUT%/* } "
5151
52+ # NOTE: use `which` to find the path to `rsync`.
53+ # In macOS 15.4, the system `rsync` is using `openrsync` which contains some permission issues.
54+ # This allows users to workaround the issue by overriding the system `rsync` with a working version.
55+ # Remove this once we no longer support macOS versions with broken `rsync`.
5256 # shellcheck disable=SC2046
53- rsync \
57+ PATH=" /opt/homebrew/bin:/usr/local/bin:$PATH " \
58+ rsync \
5459 --copy-links \
5560 --recursive \
5661 --times \
Original file line number Diff line number Diff line change @@ -31,7 +31,12 @@ if [[ "$ACTION" != indexbuild ]]; then
3131 ln -sfh " $PWD /$BAZEL_OUTPUTS_PRODUCT_BASENAME " " $TARGET_BUILD_DIR /$PRODUCT_NAME "
3232 else
3333 # Product is a bundle
34- rsync \
34+ # NOTE: use `which` to find the path to `rsync`.
35+ # In macOS 15.4, the system `rsync` is using `openrsync` which contains some permission issues.
36+ # This allows users to workaround the issue by overriding the system `rsync` with a working version.
37+ # Remove this once we no longer support macOS versions with broken `rsync`.
38+ PATH=" /opt/homebrew/bin:/usr/local/bin:$PATH " \
39+ rsync \
3540 --copy-links \
3641 --recursive \
3742 --times \
Original file line number Diff line number Diff line change @@ -75,7 +75,14 @@ dest_dir="$(dirname "${dest}")"
7575readonly dest_xcschemes=" $dest /xcshareddata/xcschemes"
7676
7777mkdir -p " $dest_xcschemes "
78- rsync \
78+
79+ # NOTE: use `which` to find the path to `rsync`.
80+ # In macOS 15.4, the system `rsync` is using `openrsync` which contains some permission issues.
81+ # This allows users to workaround the issue by overriding the system `rsync` with a working version.
82+ # Remove this once we no longer support macOS versions with broken `rsync`.
83+ # shellcheck disable=SC2046
84+ PATH=" /opt/homebrew/bin:/usr/local/bin:$PATH " \
85+ rsync \
7986 --archive \
8087 --perms \
8188 --chmod=u+w,F-x \
Original file line number Diff line number Diff line change 137137# Sync over the project, changing the permissions to be writable
138138
139139# Don't touch project.xcworkspace as that will make Xcode prompt
140- rsync \
140+ # NOTE: use `which` to find the path to `rsync`.
141+ # In macOS 15.4, the system `rsync` is using `openrsync` which contains some permission issues.
142+ # This allows users to workaround the issue by overriding the system `rsync` with a working version.
143+ # Remove this once we no longer support macOS versions with broken `rsync`.
144+ # shellcheck disable=SC2046
145+ PATH=" /opt/homebrew/bin:/usr/local/bin:$PATH " \
146+ rsync \
141147 --archive \
142148 --copy-links \
143149 --perms \
You can’t perform that action at this time.
0 commit comments