React-native-splash-screen: 'React/RCTBridgeModule.h' file not found

Created on 26 May 2018  Â·  11Comments  Â·  Source: crazycodeboy/react-native-splash-screen

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",

Most helpful comment

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

All 11 comments

I ran into the same issue after running pod update

+1

Any solution on this?

same issues with react native ver 0.60.4 :(

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

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

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

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

yeah, it works for me

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... :/

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.

Was this page helpful?
0 / 5 - 0 ratings