Skip to content
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

Closed
sryze opened this issue Oct 29, 2018 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@sryze
Copy link
Contributor

sryze commented Oct 29, 2018

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:

fatal error: 'React/RCTBridgeModule.h' file not found

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).

@react-native-bot
Copy link
Collaborator

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 react-native info on a project using the latest release.

@sryze
Copy link
Contributor Author

sryze commented Oct 29, 2018

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 sryze closed this as completed Oct 29, 2018
@lightninglu10
Copy link

@sryze I'm running into this issue now, what is the scheme you're talking about?

@sryze
Copy link
Contributor Author

sryze commented Nov 13, 2018

@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.

screen shot 2018-11-13 at 15 40 50

@Kay0806
Copy link

Kay0806 commented Aug 23, 2019

doesn't work

@facebook facebook locked as resolved and limited conversation to collaborators Oct 29, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants