-
Notifications
You must be signed in to change notification settings - Fork 465
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
fatal error: 'React/RCTBridgeModule.h' file not found #91
Comments
I found that this issue appears when you add |
For me using manual linking only, without using Cocoapods, helped - https://github.com/react-native-community/react-native-async-storage/blob/master/docs/Linking.md#project-linking |
Same here. Getting this error, when I use pods. |
Found this thread while having this issue, but not with this actual repo. |
Hey everyone, I've thought something broke recently, so I went ahead and created a project from scratch (using pods). Here's my
Maybe you forgot to include React in your build? Also, like @sebwib said (thanks btw.), the issue you're seeing could come from the Please check if it's the case. You can check it in your Scheme options (CMD + '<'). thanks. |
@krizzu Will it break if you uncomment In any case, someone using |
@tido64 Yup, using |
Same here breaks with or without use_frameworks ! my podfile :
|
same problem here :/ |
We are facing same issue with React-Native version: 0.59.5 |
@roadev @sagargondaliya Can you provide bit more details? We're trying to nail down this problem, so any info is helpful. thanks. |
@krizzu Recently we have upgraded our workspace to support 64bit architectures in Android and for that we upgraded react native to 0.59.5 and after that iOS stops building with |
@sagargondaliya: Do you use components other than AsyncStorage as well? If so, as an experiment, could you remove it and see if it builds? |
@krizzu if that may help, this is our package.json when we tried to install the community edition.
|
@Lucas-Geitner Does your app build without AsyncStorage? Also, I can't see React Native in your |
Yes the build it's working, Ilink the binary directly in xcode, maybe this is where the error come from |
@Lucas-Geitner: Yes, if you manually linked React Native, but used CocoaPods for AsyncStorage, there is no way for us to know where the React headers are. You'll need to go all in on either, or add the React header path in the project's header search path. @alex-mironov, @sintylapse, @anarkafkas (and others having the original issue): can you check in your
If it does, can you remove them, run |
I have tried by deleting node_modules, npm cache clean and tried with fresh installation. I have tried with manual linking, headers adding. Upgraded with latest version "@react-native-community/async-storage": "^1.4.1" Please help me for this. node_modules/@react-native-community/async-storage/ios/RNCAsyncStorage.h:10:9: fatal error: 'RNCAsyncStorage/RNCAsyncStorageDelegate.h' file not found info #import <RNCAsyncStorage/RNCAsyncStorageDelegate.h> The following build commands failed: |
@codoffer - Try to add with Manual installation and remove from pod file. It will resolved. |
@Karanp13 - I have tried with manual also. I don't know, How to resolve this issue. |
@codoffer Do you use Expo? Did you restart the app after linking? |
I am not using Expo. I have cleaned the build (using xCode) and tried to run with connected device and emulator both. |
@codoffer Can you provide a repo that I can look into? |
@codoffer - I hope that you set build system as 'Legacy Build System' in Workspace. |
@codoffer - Please try to change and make new derived data path and call - 'react-native link' in root directory. |
@Karanp13 - Thanks for reply. Now I am doing some temporary fixes to RUN and trying complete this application. Application works fine with - "react-native start -- --reset-cache" and changing values of import file with RNCAsyncStorage.h every run. |
@AshishCd Can you edit your command and make it more readable by using github markdown?. I think that there's an extra |
This did the magic, |
Same issue after upgrading to RN 0.61.1 |
I'd need more info about setup/Pods you have to help |
@kennym You should not need to add this dep to your cocoapods. Please compare your cocoapods file to the react-native-example app. Also compare the use_frameworks option and use_native_modules option. |
Link not working |
I didn't use cocoapods,I also got this error |
Here's the correct link to manual linking guide |
I had this issue when i updated from 58 -> 61.2. I Fixed by deleting the contents of the |
Does anyone have a fix for this ? |
@niv-breez have you tried to removing |
yes.
|
Just follow proper Upgrade Instructions using Upgrade Tool. I actually missed that there are two times pod for React and React-Core: (had different but similar issue with BVLinearGradient missing RCTView.h file)
|
Cara, queria saber pq esse React nao aparece pra mim com esse icone de lib, aparece com esse circulo vermelho. |
@Renathesco Aqui tbm. |
Getting Same Error on newly created project with PODS. |
Unfortunately I have the same error here. |
I'd require more info about (for example, Podfile) to be able to help here. |
Things I have tried:
This project was previously built by another developer. Apparently he did have a successful buid (not confirmed), this is the original podfile:
|
@devangelmotta I cannot see React Native in your If you've manually linked React Native, but use CocoaPods for AsyncStorage, AsyncStorage will not be able to find React headers. You'll need to set header search path, or also consume React Native via CocoaPods. |
I also get that error with 0.59.9 and i have upgraded to 0.60.4 and the problem was resolved. |
Any other ideas not mentioned above? |
Sometimes as last resort I just regenerate the whole project with React Native CLI |
Thanks @RichardLindhout
It also makes sense to me that such a problem can be solved:
|
You should def checkout this tool: https://react-native-community.github.io/upgrade-helper/ |
I can't upgrade without it :). But the 0.59.9 > 0.60 was a big one with autolinking so quite some changes. |
I upgraded for android and it didn't take too much time (I am using https://github.com/react-native-community/rn-diff-purge). So for iOS, where this is the first time to make it work, I do start from a new project, kind of... |
Current behavior
After adding Async Storage build fails with
fatal error: 'React/RCTBridgeModule.h' file not found
.Environment
The text was updated successfully, but these errors were encountered: