-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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/RCTBridgeDelegate.h' file not found #25838
Comments
Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety? 👉 Click here if you want to take another look at the Bug Report issue template. |
Greetings, I am having a similar issue:
This is my
The error is telling me it can't find that import:
|
Duplicate #25707 ? |
@slavikdenis , this: Solution: is not a solution. I already have Cocoapods installed and ran Afterwards, when I ran
The file does indeed exist in my https://github.com/ldco2016/NFIBEngage And this is the
If anyone can add the above configuration to that MVP and then run
that is what I am trying to accomplish myself. |
After install pod also not working same error occured act/RCTBridgeDelegate.h' file not found |
@ldco2016 well, for me it somehow worked. Please let us know, if you find the solution for your problem. Thanks |
The solution was to correctly add multiple |
I see “scheme” in Xcode shows React(missing) |
Did you find a solution for missing React in "scheme" ? |
Facing the same problem "'React/RCTBridgeDelegate.h' file not found". |
You can fix this issue by installing the missing dependencies using pods.
After that, re-run the project. It should build with no errors. |
did you? |
I change the version from 0.60 to 0.59.10 |
Is it a bug with v0.60? I am using 0.60.5. |
Same Version and same issue here as well! |
@iamawaisakram any solution? |
in Header Search Paths you should add |
@dvuvne solutions solved my problem |
@rvaitkus23 solution solved the issue! Thanks! |
Followed these steps still throw the same error. |
Check your Scheme by going to Product -> Scheme -> Edit Scheme -> Build
Note: |
Facing the same problem "'React/RCTBridgeDelegate.h' file not found". Quick fix: |
@AshishKapoor it works, just need install pods. |
This fixed issue for react native v. 0.61 and xcode v. 11.0 (11A420a) |
Same issue here with RN61 - React (missing)
|
The same issue here when upgrading from RN59.5 to RN0.61.1. System:
|
Thanks @VladosDosvidos! your solution worked for me. |
Me too! Nice one @VladosDosvidos |
I followed these steps to fix the issue:
|
Let's say you had a Scheme A, you duplicated it to Scheme B What I found happens when you run npm install is To fix this unfortunately, Note: I recommend not adding any dependency manually as you may miss a few and keep wasting your time there. |
save my life <3 |
I could solve this upgrading my Cocoapods version (1.5.3 to the 1.9.3). Then, after a
Clean and build your project and will fix the React related errors. |
@sanukumarNS Yes, your advice is also useful. Because I have two schemas in my project. |
Still getting this error when archiving, on React 63.2 |
1+ year later and this still persist. Unfortunately this client doesn't want to move to Flutter yet |
Not really a solution but I only managed to fix it by making a new React Native app with the same name and just copied and paste everything(IOS folder only). Pod install again. Again not the best solution but it ended up working. |
In my experience, if you happen to install and uninstall the wrong npm package, for example, you may irreversibly mess up your React Native project. The likely culprit is that some small - yet critical - library is removed on uninstall. In these cases, a total rebuild of the project is required. Would be nice if there's a way to restore or rollback to a previous state. |
I have this problem after creating a brand new react-native project. I've gone through the miscellaneous suggestions in this thread, like running pod install, etc. Interestingly enough, I zipped up the entire project and transferred it to a friend's computer running the exact same version of Xcode (12.0.1). It built first try, with zero changes to the project or config. I'm wondering if the problem could be caused by an Xcode setting? |
Updating from rn0.62 to 0.63, dont forget to include every schema in your pods. Otherwise the pods will only work for the one main schema.
|
here is what I did to fix this issue:
|
Embarrassed to say I fought this problem for over an hour, eventually realizing that several commits earlier, I had deleted the tvOS targets in XCode without deleting the targets in the Podfile. This caused an error during pod install, but the phrasing of the error didn't make it clear that the pod install hadn't actually completed. Thus, although I kept thinking I was running pod install, it wasn't actually happening, which resulted in this React/RCTBridgeDelegate.h' problem. I doubt very much anyone else here is making such a silly mistake, but I thought I'd share anyway. |
Hurray! When going in I moved |
This solution was solved my problem |
I've just close xcode, remove node_modules and yarn.lock or package-lock.json
after this just run xcode again and it works |
I'm currently on a lower version than react-native .60 so do not make use of pods. I had to remove the podfiles and uninstall pods with
|
Definitely, not the greatest solution and is not applicable to everyone, however, these are the steps that helped me in my situation:
|
Great find, my podfiles deployment target was 11.0 and my projects was set to 10.0. Thanks. |
If you are running mac os on m1, this answer can help with it https://stackoverflow.com/a/68543052/11792060 , works for me |
would you guys/gals PLEASE stop suggesting |
In my case, there were 2 causes of that, constant problems with XCode 12: 1) dropping libPods-<ap;pname>.a from deps, 2) duplicated app:name.plist out of nowhere. |
Same error for the demo AwesomeProject.
react-native info:
info Fetching system and libraries information...
System:
OS: macOS 10.14.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 1.15 GB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.6.0 - /usr/local/bin/node
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
Android SDK:
API Levels: 23, 28, 29
Build Tools: 28.0.3, 29.0.1
System Images: android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.4 => 0.60.4
npmGlobalPackages:
react-native-cli: 2.0.1
The text was updated successfully, but these errors were encountered: