crazycodeboy / react-native-splash-screen

A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
MIT License
5.61k stars 1.09k forks source link

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

Open yazhouZhang opened 6 years ago

yazhouZhang commented 6 years ago

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 commented 6 years ago

I ran into the same issue after running pod update

chris-ryu commented 6 years ago

+1

ajaykumar97 commented 6 years ago

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

cokealmonacid commented 5 years ago

Any solution on this?

minhphung210 commented 5 years ago

same issues with react native ver 0.60.4 :(

regalfaith commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

wuxiii commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.