Skip to content

Commit 3ac16dd

Browse files
chrfalchfacebook-github-bot
authored andcommitted
replaced use of rsync with cp in prebuild scripts (facebook#51095)
Summary: When building the RNDependencies XCFrameworks we saw some errors in the CI servers about rsync failing: `rsync(3031): error: poll: hangup on nonblocking write` We decided to fix this by changing from using rsync to cp. This commit fixes this by replacing rsync with cp, and adding a cleanup step after copying the XCFramework files. ## Changelog: [INTERNAL] [FIXED] - Replacing rsync with cp, and adding a cleanup step after copying the XCFramework files. Pull Request resolved: facebook#51095 Test Plan: Run RNDependencies scripts on CI and verify that they're working as expected. Reviewed By: fabriziocucci Differential Revision: D74236114 Pulled By: cipolleschi fbshipit-source-id: accd84abf7601919cfdbc1b6a8681a61d4293ca5
1 parent 3ad0b82 commit 3ac16dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/react-native/third-party-podspecs/ReactNativeDependencies.podspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ Pod::Spec.new do |spec|
4949
mkdir -p Headers
5050
XCFRAMEWORK_PATH=$(find "$CURRENT_PATH" -type d -name "ReactNativeDependencies.xcframework")
5151
HEADERS_PATH=$(find "$XCFRAMEWORK_PATH" -type d -name "Headers" | head -n 1)
52-
rsync -a "$HEADERS_PATH/" Headers
52+
cp -R "$HEADERS_PATH/" Headers
5353
mkdir -p framework/packages/react-native
54-
rsync -a --remove-source-files "$XCFRAMEWORK_PATH/.." framework/packages/react-native/
54+
cp -R "$XCFRAMEWORK_PATH/.." framework/packages/react-native/
55+
find "$XCFRAMEWORK_PATH/.." -type f -exec rm {} +
5556
find "$CURRENT_PATH" -type d -empty -delete
5657
CMD
5758

0 commit comments

Comments
 (0)