-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] After configuring RNFirebase for iOS, i get error RCTBridgeDelegate.h' file not found #6412
Comments
As a stopgap you may want to use v14 here for now, and remove the use_frameworks stuff, that's the typical cause. I hate to see the For react-native-firebase v15 I do provide this in order to show a comparison between "project that builds" and "whatever is wrong with my project" - https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh since there are so many ways things can go wrong I wonder if you reintroduce your project's differences to the result of that demo if things start working ? Or you are able to determine the problem area? |
Sorry for the late reply, we live in different time zones i believe. I have tested v14, without the use_frameworks stuff, which gives me errors related to the modules 'fmt' and 'folly'. I believe these were known errors, which were supposed to be solved with
|
Hi ! I found this workaround : https://stackoverflow.com/a/73092662 |
@NicolasTA-webagency can you so full step for your solution?
|
@nighttiger1990 After follow the instructions for installation, i don't do this step : https://rnfirebase.io/#altering-cocoapods-to-use-frameworks Instead of that, I put this lines in my Podfile, just before the use_react_native! :
I still use native_modules! and flipper I use Realtime Database for a couple of days now and it works like a charm. |
Here is the full Podfile
|
You. I love you. This solved my 4 days worth of headaches. Thank you so so much. |
This isn't going to work in the future though, firebase-ios-sdk requires So the real solution if this is important to you and you have iOS skills is to help the react-native + flipper folks get |
Any updates on this? Facing the same issue. We've removed firebase and it's config for now since it's only used for cloud messaging in our app |
@NicolasTA-webagency |
thank you, this solved my problems |
@hungnm11 that did not solve your problems, it only postponed them a tiny amount, and will give you other problems if you use Storage or Functions now. Avoiding the use of Until Flipper is ready, you will have to avoid Flipper, and the onus is on us (as interested Flipper users) to contribute to the solution there by collaborating with + mentioning interest in it to the Flipper team. |
Is there anyway to fix this without removing use_frameworks? I can run the app through react native cli, but I can't compile in Xcode. Here is the pod file:
|
Maybe just make that false?
...that section is strange to me. I don't need that. My build demo doesn't need that 🤔 https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh |
I actually figured out I was just opening the wrong file in Xcode 🤦. You have to open the .xcworkspace file and not the .xcodeproj file.... Sorry, I'm really new to react native. I've removed all the extra stuff from my Podfile and everything works now. 👍 |
I think that is probably the root cause of all this stuff at the moment. Definitely must open xcworkspace file if you have a cocoapod-integrated project (which is all react-native projects). I'm going to close this as there does not seem to be anything actionable here Good luck with your projects, all |
I was having the exact same issue and finally tracked it down.
|
🔥 Hi there,
Issue
After configuring RNFirebase to my React Native project, I get the following error:
RCTBridgeDelegate.h' file not found
. I have applied the suggested configuration as stated in the docs: click here.Project Files
My Podfile looks like this:
This is my AppDelegate.mm file
Details
I have explicitly disabled hermes and flipper. New_architecture should be disabled as well according to the docs, but I don't believe I am using this currently.
I have tried the following steps to reproduce:
build
, andPods
folder, and thenpod install
pod deintegrate
, andpod install
sudo arch -x86_64 gem install ffi
, and then in iOS:arch -x86_64 pod install
I use the following versions:
I hope anyone is able to help me with this issue. Thanks in advance! :)
The text was updated successfully, but these errors were encountered: