Skip to content

Commit 068ec39

Browse files
chrfalchmeta-codesync[bot]
authored andcommitted
fixed cp command to work with gnu coreutils (#54063)
Summary: When using gnu coreutils, installation of ReactNativeDependenices on iOS fails at compile time with errors like in the following issue (in the Expo repo): expo/expo#38992 This is caused by a missing `.` in the end of the path name that the built-in MacOS cp command handles well, but that will create an extra Headers folder when using cp from gnu coreutils. This commit fixes this by adding the missing `.` ## Changelog: [IOS] [FIXED] - Fixed issue when using gnu coreutils cp command when using precompiled binaries causing compilation error Pull Request resolved: #54063 Test Plan: - Verify that you're running gnu coreutils (`cp --version`) - Create new expo app `npx create-expo-app` - Build on iOS - should error without this fix, should work with the fix. Reviewed By: christophpurrer Differential Revision: D83964083 Pulled By: javache fbshipit-source-id: 46dc074ca9b7fc97fa5a37ef48d68a895e3310ff
1 parent 5027375 commit 068ec39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Pod::Spec.new do |spec|
6262
exit 0
6363
fi
6464
65-
cp -R "$HEADERS_PATH/" Headers
65+
cp -R "$HEADERS_PATH/." Headers
6666
mkdir -p framework/packages/react-native
6767
cp -R "$XCFRAMEWORK_PATH/../." framework/packages/react-native/
6868
find "$XCFRAMEWORK_PATH/.." -type f -exec rm {} +

0 commit comments

Comments
 (0)