Skip to content

Commit 4df68bc

Browse files
committed
Works around an rsync issue causing "Permission denied" errors
1 parent 8fac6d1 commit 4df68bc

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

xcodeproj/internal/bazel_integration_files/copy_dsyms.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ if [[ -n "${BAZEL_OUTPUTS_DSYM:-}" ]]; then
6363
$(xargs -n1 <<< "$BAZEL_OUTPUTS_DSYM") \
6464
"$TARGET_BUILD_DIR"
6565

66+
# Works around an rsync issue causing "Permission denied" errors
67+
chmod +w "$TARGET_BUILD_DIR"
68+
6669
cd "${TARGET_BUILD_DIR}"
6770

6871
export -f patch_dsym

xcodeproj/internal/bazel_integration_files/copy_outputs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ if [[ "$ACTION" != indexbuild ]]; then
4343
"$BAZEL_OUTPUTS_PRODUCT_BASENAME" \
4444
"$TARGET_BUILD_DIR"
4545

46+
# Works around an rsync issue causing "Permission denied" errors
47+
chmod +w "$TARGET_BUILD_DIR"
48+
4649
if [[ -n "${TEST_HOST:-}" ]]; then
4750
# We need to re-sign test frameworks that Xcode placed into the test
4851
# host un-signed

xcodeproj/internal/templates/incremental_installer.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ rsync \
8282
--delete \
8383
"$src_xcschemes" "$dest_xcschemes/"
8484

85+
# Works around an rsync issue causing "Permission denied" errors
86+
chmod +w "$dest_xcschemes/"
87+
8588
if [[ $(uname) == "Darwin" ]]; then
8689
is_macos=1
8790
else

xcodeproj/internal/templates/legacy_installer.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ rsync \
148148
--delete \
149149
"$src/" "$dest/"
150150

151+
# Works around an rsync issue causing "Permission denied" errors
152+
chmod +w "$dest/"
153+
151154
# Copy over the bazel integration files
152155
mkdir -p "$dest/rules_xcodeproj/bazel"
153156
rm -rf "$dest/rules_xcodeproj/bazel"/*

0 commit comments

Comments
 (0)