forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 151
Labels
Description
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 17A400Steps to reproduce the bug
Here's how you reproduce:
- 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... - Get to the
pod installstep (on 0.79) - Get errors from
pod installbecausenative_modules.rbwas 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.
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
shirakaba and kraenhansen