Skip to content

Conversation

@vonovak
Copy link
Collaborator

@vonovak vonovak commented Aug 7, 2025

Summary:

When running RCT_USE_PREBUILT_RNCORE=1 RCT_USE_RN_DEP=1 pod install I'm getting an error: cp: framework/packages/react-native/..: File exists

This is not seen consistently by everyone but I've seen in reported one more time at Expo. Could be related to running MacOS 26.

Somehow, apparently, the .. is being treated as a literal directory name and cp is trying to create a directory named .. inside framework/packages/react-native/ which is not what we want. Using /. avoids that.


What also seemed to work(around) was to change mkdir -p framework/packages/react-native to mkdir -p framework/packages/ and then cp can create the framework/packages/react-native/.. folder. But this is definitely more confusing.

Changelog:

Pick one each for the category and type tags:

[IOS] [FIXED] - fix "file exists" error in ReactNativeDependencies.podspec

Test Plan:

tested locally, and in CI on older macOS: expo/expo#38631 (the ios build succeeds)

@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 Aug 7, 2025
@github-actions
Copy link

github-actions bot commented Aug 7, 2025

Job Summary for Gradle

Test All :: build_android
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github publishAllToMavenTempLocal build 8.14.3 Build Scan not published

@chrfalch chrfalch requested a review from cipolleschi August 7, 2025 14:53
@vonovak vonovak marked this pull request as ready for review August 7, 2025 19:50
@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 Aug 7, 2025
@cipolleschi
Copy link
Contributor

/rebase - this comment automatically rebase on top of main

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 11, 2025
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 4c570b5.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @vonovak in 4c570b5

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

kikoso pushed a commit to kikoso/react-native that referenced this pull request Aug 26, 2025
Summary:
When running `RCT_USE_PREBUILT_RNCORE=1 RCT_USE_RN_DEP=1 pod install` I'm getting an error: `cp: framework/packages/react-native/..: File exists`

This is not seen consistently by everyone but I've seen in reported one more time at Expo. Could be related to running MacOS 26.

Somehow, apparently, the `..` is being treated as a literal directory name and cp is trying to create a directory named `..` inside `framework/packages/react-native/` which is not what we want. Using `/.` avoids that.

 ---
What also seemed to work(around) was to change `mkdir -p framework/packages/react-native` to `mkdir -p framework/packages/` and then `cp` can create the `framework/packages/react-native/..` folder. But this is definitely more confusing.

## Changelog:

Pick one each for the category and type tags:

[IOS] [FIXED] - fix "file exists" error in `ReactNativeDependencies.podspec`

Pull Request resolved: facebook#53136

Test Plan: tested locally, and in CI on older macOS: expo/expo#38631 (the ios build succeeds)

Reviewed By: rshest

Differential Revision: D79990895

Pulled By: cipolleschi

fbshipit-source-id: 44ff9034800d3acd4e55ec39aabfb326382372cb
react-native-bot pushed a commit that referenced this pull request Aug 27, 2025
Summary:
When running `RCT_USE_PREBUILT_RNCORE=1 RCT_USE_RN_DEP=1 pod install` I'm getting an error: `cp: framework/packages/react-native/..: File exists`

This is not seen consistently by everyone but I've seen in reported one more time at Expo. Could be related to running MacOS 26.

Somehow, apparently, the `..` is being treated as a literal directory name and cp is trying to create a directory named `..` inside `framework/packages/react-native/` which is not what we want. Using `/.` avoids that.

 ---
What also seemed to work(around) was to change `mkdir -p framework/packages/react-native` to `mkdir -p framework/packages/` and then `cp` can create the `framework/packages/react-native/..` folder. But this is definitely more confusing.

## Changelog:

Pick one each for the category and type tags:

[IOS] [FIXED] - fix "file exists" error in `ReactNativeDependencies.podspec`

Pull Request resolved: #53136

Test Plan: tested locally, and in CI on older macOS: expo/expo#38631 (the ios build succeeds)

Reviewed By: rshest

Differential Revision: D79990895

Pulled By: cipolleschi

fbshipit-source-id: 44ff9034800d3acd4e55ec39aabfb326382372cb
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @vonovak in e6e814c

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

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.

5 participants