-
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
[iOS - RN 0.61.1 migration] React/RCTBridgeModule.h file not found #26678
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. |
I have same issue |
the same many libraries migrated to pods
|
@ma96o thks! |
Also being affected by this and can no longer link + build my custom native module that worked before i upgraded to 0.61.2 |
Hi @alnorris ! |
I had the same issue. I just did following to fix:
This helped me solve the missing |
@usrbowe This is good workaround, but it doesn't solve the issue of manually linked packages. Some old packages don't have podspecs and have package owners that are unresponsive to PR's to add them. |
Can you point me to an example of such a library? I will try to reproduce it. You can also zip me your project and I will try to see what changes are needed to make it work. My understanding is that these cases are deprecated and we are moving towards fully automatic linking w/o relying on that. |
@grabbou, any library without a podspec. Ex: https://github.com/smalltownheroes/react-native-adobe-analytics. If manual linking is in fact deprecated, I would advise we need to include this as a breaking change in the change log, and remove this from the documentation: https://facebook.github.io/react-native/docs/linking-libraries-ios#manual-linking |
My question is this, is there any way to solve it? |
@zhenghui0705 well if you have the react missing thing, here's what I did.
Here you go, I hope this helps. If however you do not have the React(missing), I have no idea how to solve this since i've never had this problem :/ |
@zhenghui0705 Here's how I made it work with the workaround. |
After burning a day on this, building with legacy build system did the trick: |
any solution? I also find this error in upgrading to RN 0.61.5 |
Getting this on 0.61.4 |
I managed to fix it by adding |
faced same issue.
Skipped this error. try also |
It seems OK, but in my case: After click Plus Sign > I cannot found React in Pods, only ReactCore and ReactCoreModules were seen :( I would try to unlink all manual dependencies (my project was created in 0.59 > Upgraded to 0.60.5 > Upgrading to 0.61.5 and stucking here) |
Is there any updated solution for this? I'm using react native 0.61.5 and still getting the React/RCTBridgeModule.h file not found in ImagePickerManager.h? |
I spent 2 days on getting this all in one workaround: |
Just install everything from Pods, Now open .xworkspace and your code will work like a charm https://medium.com/@arjunsinghrajput/something-wrong-with-react-native-b398d5a66278 |
|
@raphaelpinel |
Yes it does for me , can you help ? |
Same error here |
the only solution that worked for me is that you create .podspec file to whatever library you using and install it using Pods , and dont manual link or anything of that .. saddly not all libraries are up to date, so had to do it yourself manually to setup a .podspec file |
The solution, for me, was deleting the entire ios folder, generating a new project with react-native-init, and moving the ios folder from the newer project to the official one. |
Do you need help upgrading to a newer React Native version? Visit the Upgrade Support repository or use the upgrade helper to see the changes that need to be made to upgrade your app. |
Absolutely got myself in a tangled mess with the state of projects/podfiles/caches. I backed out my (very messy) changes then tried the above deintegrate and clean, pow, really unexpected but it was a silver bullet! Reloaded everything and it just worked. Thank you so much for the suggestion. |
Still, I'm getting the same error anyone finds a solution for this? Basically, I'm using react-native-create module lib for but it creates iOS folder without pod file so now i want to use pods and when i'm adding custom pods then i'm getting React/RCTBridgeModule.h file not found |
This solution was solved my problem |
Reopening bug that is wrongly closed
#26615
React Native version: 0.61
Steps To Reproduce
Describe what you expected to happen:
To compile correctly
The text was updated successfully, but these errors were encountered: