Failed to find rctbridgemodule.h
Hey guys,
i got this issue with xcode for my react-native project.
My coworker updated our project to a new revision and updated react-native itself how he said. After that the IOS Build doesn't work like it used to.
Android is all set, everything works just as beautiful as before.
I tried to solve it with this solution:
https://github.com/brentvatne/react-native-svgkit/issues/11
but it didn't work for me.
Just deleted and installed the node_modules a couple of times and reinstalled it using npm i and npm install.
But no success.
Would be a blessing if you could help me!
Related
I am trying to setup my React Native app on iOS, but on build, I am always getting this error:
'react/bridging/CallbackWrapper.h' file not found
I have been investigating on my own and found a few people with the same problem:
https://github.com/mrousavy/react-native-vision-camera/issues/1121
https://github.com/facebook/react-native/issues/34102
I have tried everything in these answers but no luck. Since it seems related to React Native Vision Camera, I also did everything stated in their troubleshooting page.
Unforrunately I still get the error. I built the project both using npx react-native run-ios (which throws an endless error) and using XCode itself, where I could find the real error.
Can you help me? The app works perfectly in Android. Thanks!
If nothing of the links I pasted in the question work, what finally worked for me was:
Updgrade React Native to >= 0.69.3 (my version was 0.69.0). To do that npx react-native upgrade.
Delete Pods folder and Podfile.lock from iOS folder. Run pod install.
And then building the project again.
The way to fix the problem is to comment-out the line :
s.header_dir = "react/bridging"
in
/node_modules/react-native/ReactCommon/React-bridging.podspec
I'm facing the same issue since some days. The workarounds didn't work for me.
I am unable to archive the project for release:
error: Resource "/Users/cedricjung/Library/Developer/Xcode/DerivedData/decouverto-asvavlxsbksyvhgovxmjpnlracmz/Build/Intermediates.noindex/ArchiveIntermediates/decouverto/BuildProductsPath/Release-iphoneos/React-Core/AccessibilityResources.bundle" not found. Run 'pod install' to update the copy resources script.
You can check all source code there.
I'm using react-native v0.63.3.
I'm new in iOS development even if I use react-native since 3 years.
Thank you for your help. :)
I have a simple React Native app that I've been testing on Android and now want to test on iOS. It's using React Navigation.
I ran npm run ios but I'm getting the following error:
info In file included from
/Users/rbbit/reactnative/testproj1/ios/testproj1/main.m:10:
/Users/rbbit/reactnative/testproj1/ios/testproj1/AppDelegate.h:9:9: fatal error: 'UMReactNativeAdapter/UMModuleRegistryAdapter.h' file not found
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
info 1 error generated.
I opened XCode but I'm basically getting the same message, nothing else that would help me debug this.
I do see that there is a package called react-native-adapter (https://github.com/expo/expo/tree/master/packages/%40unimodules/react-native-adapter), however I'm hesitant to just install this since I followed the instructions on how to include react-navigation and didn't mention that, assuming this is related.
Also, that page says If you are using react-native-unimodules, this package will already be installed and configured!, and react-native-unimodules already is in my dependencies.
Any pointers on how to solve this? Thank you!
For latest RN versions (RN 0.60+) errors like this should be fixed with the auto-linking and just running a pod install.
For older versions you should try:
react-native link in the root folder of your project
Then in Xcode Product->Clean Build folder, restart JS server and attempt to rebuild.
If still not working double check the configs from here:
https://github.com/unimodules/react-native-unimodules
and the App.delegate from here:
https://gist.github.com/brentvatne/1ece8c32a3c5c9d0ac3a470460c65603
Sources:
Pod install reminder was first suggested by Sandy in the below comment
pod install didn't work for me until I added these lines to my pod file:
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
And
use_unimodules!(modules_paths: ['../node_modules'])
Then do a pod install.
Example: https://gist.github.com/sjchmiela/6c079f2173938a9a61a7c6f053c45000
I had this exact same error with everything configured correctly, everything in the other answers done and all the unimodules installation steps already done, on a project that had worked for months, building it on a new computer. It turned out the reason was because I was simply using the wrong file in xCode.
I had opened the .xcodeproj file when I should have opened and run the build from the .xcworkspace file.
Everything seemed to work as normal apart from this error, which made it look like a configuration problem rather than a simple "you opened the wrong file" problem. Hopefully if someone else makes the same mistake, this will save them a few hours of fruitless tinkering.
I’ve tried over 3 days of trying to fix this error and I’ve found nothing could someone help?
/Users/user/Desktop/Projects/flutter_duelme/flutter_duelme/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'firebase_auth/FirebaseAuthPlugin.h' file not found
I had the same problem all day long. I ended up having to bump my version of Firebase_Auth to the latest, which for me at the moment is: ^0.15.3, which then forced me to have to upgrade Flutter as well.
Did the typical
Delete PodFile and PodFile.lock Flutter Clean Rebuild project pod install
I'm using Mac, so I also had to update my Xcode to 11.3. Then needed to update Mac OS to Catalina.
Lot's of work, but this got me to a successful build. Hopefully, something in here helps others dealing with this issue.
I'm trying to make a simple react-native app with redux and redux-saga tie-ins. Unfortunately, when I try to run the app (whether using react-native run-ios or running through Xcode, I get the following error:
Strangely enough, when I ported things like the Counter example for redux-saga to react-native or other examples I don't have this issue. I'm wondering if someone could help point to where things could be going wrong?
So turns out I just needed to link some more libraries together.
Reinstalling these components helped:
npm install --save react-native
and
npm install --save react-native-controllers
followed by rnpm link fixed the issue
Here is another solution based on my own failure:
Through rechecking iOS installation doc, I found out some tricky differences in the #4 requirement:
It clearly says project row instead of target row. This time I selected 'project' row and add do what the #4 instruction told to do. Then it solved the problem. Hopefully my solution will be found helpful.
I faced a similar problem and it was because somehow the setup I made for the Xcode project were lost, so following the instructions I made them again and the problem was solved.