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

'React/RCTBridgeModule.h' file not found #215

Open
yazhouZhang opened this issue May 26, 2018 · 11 comments
Open

'React/RCTBridgeModule.h' file not found #215

yazhouZhang opened this issue May 26, 2018 · 11 comments

Comments

@yazhouZhang
Copy link

node_modules/react-native-splash-screen/ios/SplashScreen.h:9:9: 'React/RCTBridgeModule.h' file not found

react-native upgrade doesn't work. Xcode. 9.3
"react": "^16.0.0-beta.5",
"react-native": "^0.49.0",

@ThomasAbbink
Copy link

I ran into the same issue after running pod update

@chris-ryu
Copy link

+1

@ajaykumar97
Copy link

ajaykumar97 commented Nov 14, 2018

have a look at it #131

@cokealmonacid
Copy link

Any solution on this?

@minhphung210
Copy link

same issues with react native ver 0.60.4 :(

@regalfaith
Copy link

I have the same issue with this env.
RN 0.60.5
Xcode 11.0 beta 6
iOS 13.0

Here's what I tried but it didn't work.

$ cd ./ios
$ pod update

Go to Build Settings -> Header Search Paths -> add
"${PODS_ROOT}/Headers/Public/react-native-splash-screen"

RNSplashScreen still can't find React/RCTBridgeModule.h

@regalfaith
Copy link

regalfaith commented Sep 18, 2019

I've solved this problem on RN 0.60.5 and Xcode 11.0 beta 6 as follows

$ npm i react-native-splash-screen --save
$ cd ./ios
$ pod update

You don't need to do react-native link on XCode 11 beta + RN >= 0.60

And 'Do Not' add the libSplashScreen.a library to Link Binary With Libraries since this will cause the 'Duplicate Symbol Error'.

And go to AppDelegate.m and import the header as follows
#import <react-native-splash-screen/RNSplashScreen.h>
instead of
#import "RNSplashScreen.h"

And the remaining steps are the same as those in README.md

This will remove 'React/RCTBridgeModule.h' file not found error.
I hope anyone who has the same problem finds this helpful.

Thanks.

@arslanmurtaza
Copy link

This did the magic,
https://www.youtube.com/watch?v=JnZS5MoYKCY
You just need to add React in scheme.

@wuxiii
Copy link

wuxiii commented Dec 6, 2019

This did the magic,
https://www.youtube.com/watch?v=JnZS5MoYKCY
You just need to add React in scheme.

yeah, it works for me

@jako-hub-old
Copy link

This did the magic,
https://www.youtube.com/watch?v=JnZS5MoYKCY
You just need to add React in scheme.

yeah, it works for me

It basically solves the error... but the app doesn't build... :/

@MooBooty
Copy link

basically solves the error... but the app doesn't build... :/

--were you ever able to get the project to build? I was in the same boat as you. what I did was to remove the dependency on libSplashScreen.a, then I ran the project from the command line with the npx commands. that worked, and thereafter the project seems to run via XCode too. I wish I knew exactly what I did because it was building, just not running via XCode until i started angry-clicking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests