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 49
49
if [[ -n " ${BAZEL_OUTPUTS_DSYM:- } " ]]; then
50
50
cd " ${BAZEL_OUT%/* } "
51
51
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`.
52
56
# shellcheck disable=SC2046
53
- rsync \
57
+ PATH=" /opt/homebrew/bin:/usr/local/bin:$PATH " \
58
+ rsync \
54
59
--copy-links \
55
60
--recursive \
56
61
--times \
Original file line number Diff line number Diff line change @@ -31,7 +31,12 @@ if [[ "$ACTION" != indexbuild ]]; then
31
31
ln -sfh " $PWD /$BAZEL_OUTPUTS_PRODUCT_BASENAME " " $TARGET_BUILD_DIR /$PRODUCT_NAME "
32
32
else
33
33
# 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 \
35
40
--copy-links \
36
41
--recursive \
37
42
--times \
Original file line number Diff line number Diff line change @@ -75,7 +75,14 @@ dest_dir="$(dirname "${dest}")"
75
75
readonly dest_xcschemes=" $dest /xcshareddata/xcschemes"
76
76
77
77
mkdir -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 \
79
86
--archive \
80
87
--perms \
81
88
--chmod=u+w,F-x \
Original file line number Diff line number Diff line change 137
137
# Sync over the project, changing the permissions to be writable
138
138
139
139
# 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 \
141
147
--archive \
142
148
--copy-links \
143
149
--perms \
You can’t perform that action at this time.
0 commit comments