-
Notifications
You must be signed in to change notification settings - Fork 24.8k
[iOS] Use autolinking react-native-config output in iOS artifacts generator #53503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5c06b10
to
045db60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code makes sense, but there is one important part that needs to be addressed.
packages/react-native/scripts/codegen/generate-artifacts-executor/utils.js
Outdated
Show resolved
Hide resolved
I'm having some trouble building on 0.81-stable...kitten:react-native:@kitten/0.81-stable/fix/pick-broken-ios-autolinking I'll have to look at the lint failures but the |
packages/react-native/scripts/codegen/generate-artifacts-executor/utils.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked at the CCS with @byCedric. I think this is good to go, as soon as the linting and JS tests are fixed.
28de9a8
to
c8dfe0d
Compare
c8dfe0d
to
a9ab883
Compare
Should be back to normal and passing. Rebased on |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D81490755. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review automatically exported from Phabricator review in Meta.
This pull request was successfully merged by @kitten in f170db4 When will my fix make it into a release? | How to file a pick request? |
@cipolleschi merged this pull request in f170db4. |
Summary:
Resolves #53501
This is a pretty major oversight of (presumably) the old autolinking refactor. The iOS autolinking's second stage, invoked in
use_react_native!
does not accept thereact-native-config
sub-command'sreact-native-config
output. This is only invoked and used in the prior step,use_native_modules
.The second step instead invokes old code that does something similar to the new autolinking in
scripts/generate-artifacts-executor
, and happens to align in most cases. (But it does "autolinking" from scratch). tl;dr: When the results don't match up, things go wrong.Instead, we now write the autolinking (react native config) results to a file, then read the output back in the second step.
This doesn't affect Android/Gradle, which are implemented correctly.
Changelog:
[IOS] [FIXED] - Use autolinking-generated react-native-config output in second step of cocoapods linking that generates artifacts and generated source
Test Plan:
bun install
bun expo run:ios