Skip to content

[0.82] Use autolinking react-native-config output in iOS artifacts generator #1109

@cipolleschi

Description

@cipolleschi

Target Branch

0.82

Link to commit or PR to be picked

facebook/react-native@f170db4

Description

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 the react-native-config sub-command's react-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions