react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

'React/RCTBridgeModule.h' file not found

Open yazhouZhang opened this issue 8 years ago • 11 comments

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

yazhouZhang avatar May 26 '18 09:05 yazhouZhang

I ran into the same issue after running pod update

ThomasAbbink avatar May 28 '18 14:05 ThomasAbbink

+1

chris-ryu avatar Jul 05 '18 07:07 chris-ryu

have a look at it https://github.com/crazycodeboy/react-native-splash-screen/issues/131

ajaykumar97 avatar Nov 14 '18 09:11 ajaykumar97

Any solution on this?

cokealmonacid avatar Sep 14 '19 06:09 cokealmonacid

same issues with react native ver 0.60.4 :(

minhphung210 avatar Sep 17 '19 07:09 minhphung210

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 avatar Sep 18 '19 00:09 regalfaith

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.

regalfaith avatar Sep 18 '19 06:09 regalfaith

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

arslanmurtaza avatar Sep 27 '19 07:09 arslanmurtaza

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

yeah, it works for me

wuxiii avatar Dec 06 '19 03:12 wuxiii

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

jako-hub-old avatar May 08 '20 08:05 jako-hub-old

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.

MooBooty avatar May 12 '20 21:05 MooBooty