Skip to content

native_modules behavior unstable for Getting Started #2723

@ctjlewis

Description

@ctjlewis

Environment

react-native -v: 20.0.0
npm ls react-native-macos: react-native-macos@0.79.0
node -v: v22.13.1
npm -v: 10.9.2
yarn --version: No Yarn. Bun for PM. Yarn didn't change this, I tested.
xcodebuild -version:
Xcode 26.0.1
Build version 17A400

Steps to reproduce the bug

Here's how you reproduce:

  1. Run bunx @react-native-community/cli init [project] from the docs
    Note: The docs are technically fine it turns out, because they force 0.78 which is stable. But ideally, every release works, or the docs are updated for 0.79...
  2. Get to the pod install step (on 0.79)
  3. Get errors from pod install because native_modules.rb was removed in chore: remove unused native_modules files react-native-community/cli#2547.

If you close this issue like you have closed these, it would be a serious mistake. This is going to be a pretty common issue for people.

Image

Expected Behavior

The pod install should work, like it worked for years.

Actual Behavior

The pod install fails:

[!] Invalid `Podfile` file: cannot load such file -- /Users/lewis/.../node_modules/@react-native-community/cli-platform-ios/native_modules.

 #  from /Users/lewis/Development/panels/macos/Podfile:2
 #  -------------------------------------------
 #  require_relative '../node_modules/react-native-macos/scripts/react_native_pods'
 >  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
 #  

Reproducible Demo

Why don't you use CI to test that your examples actually set up correctly?

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions