Skip to content

[RN][iOS] Do not add LongLivedObject wrapper in OSS - #35491

Closed
cipolleschi wants to merge 1 commit into
mainfrom
cipolleschi/fix_long_lived_object
Closed

[RN][iOS] Do not add LongLivedObject wrapper in OSS#35491
cipolleschi wants to merge 1 commit into
mainfrom
cipolleschi/fix_long_lived_object

Conversation

@cipolleschi

Copy link
Copy Markdown
Contributor

Summary

This change excludes the LongLivedObject.h file from the pod in the ReactCommon library.

The file creates a problem when the use_frameworks! option is used in an app because there can't be two files with the same name, despite being in different paths,
within the same framework. Specifically, this LongLivedObject is just a redirect to the other one, so it should be safe to exclude this.

Changelog

[iOS][Fixed] - Exclude redirector to LongLivedObject.h from ReactCommon podspec

Test Plan

  1. Manually tested in an app from RC2

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 27, 2022
@analysis-bot

analysis-bot commented Nov 27, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 10a8f18
Branch: main

@cipolleschi
cipolleschi marked this pull request as ready for review November 28, 2022 11:36
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi

Copy link
Copy Markdown
ContributorAuthor

Closing this as I'm working on a Stack internally to fix use_frameworks!

@cipolleschi
cipolleschi deleted the cipolleschi/fix_long_lived_object branch November 28, 2022 11:53
facebook-github-bot pushed a commit that referenced this pull request Nov 29, 2022
Summary:
This change excludes the `LongLivedObject.h` file from the pod in the ReactCommon library.
The file creates a problem when the `use_frameworks!` option is used in an app because there can't be two files with the same name, despite being in different paths,
within the same framework. Specifically, this `LongLivedObject` is just a redirect to the other one, so it should be safe to exclude this.
## Changelog
[iOS][Fixed] - Exclude redirector to `LongLivedObject.h` from ReactCommon podspec
Pull Request resolved: #35491
Test Plan: 1. Manually tested in an app from RC2
Reviewed By: cortinico
Differential Revision: D41548985
Pulled By: cipolleschi
fbshipit-source-id: acc57fccdedb344a3aa105f2968645a049392e07
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cipolleschi in dd0bf83.

When will my fix make it into a release? | Upcoming Releases

@react-native-botreact-native-bot added the Merged This PR has been merged. label Nov 29, 2022
kelset pushed a commit that referenced this pull request Nov 30, 2022
Summary:
This change excludes the `LongLivedObject.h` file from the pod in the ReactCommon library.
The file creates a problem when the `use_frameworks!` option is used in an app because there can't be two files with the same name, despite being in different paths,
within the same framework. Specifically, this `LongLivedObject` is just a redirect to the other one, so it should be safe to exclude this.
## Changelog
[iOS][Fixed] - Exclude redirector to `LongLivedObject.h` from ReactCommon podspec
Pull Request resolved: #35491
Test Plan: 1. Manually tested in an app from RC2
Reviewed By: cortinico
Differential Revision: D41548985
Pulled By: cipolleschi
fbshipit-source-id: acc57fccdedb344a3aa105f2968645a049392e07
@cipolleschicipolleschi mentioned this pull request Oct 11, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.p: FacebookPartner: FacebookPartnerPlatform: iOSiOS applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@cipolleschi@analysis-bot@facebook-github-bot@react-native-bot