Skip to content

Conversation

@kitten
Copy link
Contributor

@kitten kitten commented Sep 9, 2025

Summary:

Follow-up to #53503 for a regression

When no React Native module is present this bail condition stops us from generating the artifacts podspec that's needed to complete build.

Changelog:

[IOS] [FIXED] - Fix regression that skips artifacts code generation

Test Plan:

  • Create an app without any React Native modules, run pod install; without this fix the podspec will be missing and the build will fail
    • With expo this can be reproduced using create-expo-app --template blank-typescript@next on [email protected]
    • With the community CLI this can be reproduced using npx @react-native-community/cli@latest init test --skip-install --version 0.81.2 and uninstalling react-native-safe-area-context

@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 Sep 9, 2025
@facebook-github-bot facebook-github-bot added 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. labels Sep 9, 2025
@kitten kitten marked this pull request as draft September 9, 2025 21:23
@kitten

This comment was marked as outdated.

When no libraries are detected, artifacts codegen bails early, which
breaks the build, since required podspecs aren't created.
@kitten kitten force-pushed the @kitten/fix/react-native-libraries-autolinking branch from e6a5d05 to 605869b Compare September 10, 2025 09:09
@kitten kitten changed the title [iOS] Add linking for built-in react-native libraries (FBReactNativeSpec) [iOS] Remove outdated artifacts codegen early return Sep 10, 2025
@kitten kitten marked this pull request as ready for review September 10, 2025 09:15
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in f6f5ea0.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @kitten in f6f5ea0

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

react-native-bot pushed a commit that referenced this pull request Sep 10, 2025
Summary:
Follow-up to #53503 for a regression

When no React Native module is present this bail condition stops us from generating the artifacts podspec that's needed to complete build.

## Changelog:

[IOS] [FIXED] - Fix regression that skips artifacts code generation

Pull Request resolved: #53690

Test Plan:
- Create an app **without** any React Native modules, run `pod install`; without this fix the podspec will be missing and the build will fail
  - With expo this can be reproduced using `create-expo-app --template blank-typescript@next` on `[email protected]`
  - With the community CLI this can be reproduced using `npx react-native-community/cli@latest init test --skip-install --version 0.81.2` and uninstalling `react-native-safe-area-context`

Reviewed By: javache

Differential Revision: D82103491

Pulled By: cipolleschi

fbshipit-source-id: 3d9619b5a935ca920220824b3963a9a107f926ca
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @kitten in c3149f2

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

vzaidman pushed a commit that referenced this pull request Sep 15, 2025
Summary:
Follow-up to #53503 for a regression

When no React Native module is present this bail condition stops us from generating the artifacts podspec that's needed to complete build.

## Changelog:

[IOS] [FIXED] - Fix regression that skips artifacts code generation

Pull Request resolved: #53690

Test Plan:
- Create an app **without** any React Native modules, run `pod install`; without this fix the podspec will be missing and the build will fail
  - With expo this can be reproduced using `create-expo-app --template blank-typescript@next` on `[email protected]`
  - With the community CLI this can be reproduced using `npx react-native-community/cli@latest init test --skip-install --version 0.81.2` and uninstalling `react-native-safe-area-context`

Reviewed By: javache

Differential Revision: D82103491

Pulled By: cipolleschi

fbshipit-source-id: 3d9619b5a935ca920220824b3963a9a107f926ca
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @kitten in 7754c05

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.

3 participants