Skip to content

Conversation

@chrfalch
Copy link
Collaborator

@chrfalch chrfalch commented Oct 4, 2025

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

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.

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 `.`
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 4, 2025
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 4, 2025
@DCzajkowski
Copy link

I was losing hope, but you saved the day. Indeed, GNU utils were the issue. I've tried everything to fix Expo 54 not working on my macOS (as in #22703 (comment) and expo/expo#38992) and coreutils were the culprit.

For anyone wondering what I did:

  1. Turn off all GNU utils (in my case these):
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/coreutils/libexec/gnubin
/opt/homebrew/opt/findutils/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/gawk/libexec/gnubin
/opt/homebrew/opt/gnu-indent/libexec/gnubin
/opt/homebrew/opt/grep/libexec/gnubin
  1. Clean everything using this:
rm -rf ios/Pods
rm -rf ios/Podfile.lock
rm -rf ios/build
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/CocoaPods/
rm -rf ~/.cocoapods/
pod cache clean --all

@meta-codesync
Copy link

meta-codesync bot commented Oct 6, 2025

@javache has imported this pull request. If you are a Meta employee, you can view this in D83964083.

@meta-codesync meta-codesync bot closed this in 068ec39 Oct 6, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 6, 2025
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @chrfalch in 068ec39

When will my fix make it into a release? | How to file a pick request?

@facebook-github-bot
Copy link
Contributor

@javache merged this pull request in 068ec39.

@cortinico
Copy link
Contributor

Thanks for fixing this @chrfalch 🙏

react-native-bot pushed a commit that referenced this pull request Oct 20, 2025
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
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @chrfalch in 779c768

When will my fix make it into a release? | How to file a pick request?

alanjhughes pushed a commit that referenced this pull request Oct 20, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants