-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Build worked fine today, reinstalled node_modules => 'React/RCTBridgeModule.h' file not found #22000
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists. The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running |
Never mind... Apparently I deleted my Xcode scheme (it was not marked as shared) and my new auto-created scheme wasn't set up properly. It should have the React target before the project target in the build tab. |
@sryze I'm running into this issue now, what is the scheme you're talking about? |
@lightninglu10 In Xcode go to upper left corner -> click on your app name -> Edit Scheme -> Build -> make sure in Targets you have React as your first target, and then your app's target. This tells Xcode to build React Native and all the modules before your project. |
doesn't work |
Environment
Environment:
OS: macOS High Sierra 10.13.6
Node: 11.0.0
Yarn: Not Found
npm: 6.4.1
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.2 AI-181.5540.7.32.5056338
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4
Description
I can no longer run my project on iOS because of build errors that appeared out of nowhere. I was doing some cleanup and removed node_modules, then reinstalled all the packages with
npm install
. But now the project can't be built, I'm getting the same error every time for various native modules:Both
react-native run-ios
and Xcode give the same result. I literally changed nothing in my project except reinstalling node packages (I'm using Git so I can see that nothing changed).The text was updated successfully, but these errors were encountered: