You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[🐛] compile errors with react-native pre-compiled iOS distribution default on RN 0.84 - workaround - disable pre-compiled react-native or use Podfile preinstall hook #8883
I am upgrading an existing, barebone-RN app using RN Firebase from RN@0.83 to RN@0.84. All looks fine for Android, however for iOS it fails to build with the following errors:
I'm not sure out of my head what is the purpose of <React/RCTConvert.h>, however in other places it similarly complains about imports of <React/RCTBridgeModule.h> and <React/RCTEventEmitter.h>, which I don't have to import inside my own libraries to support communication between JS and native layers in the latest RN versions... so guess that is just some legacy code which relies on legacy stuff removed (or hidden) now from RN?
Project Files
Javascript
Click To Expand
package.json:
# N/A
firebase.json for react-native-firebase v6:
# N/A
iOS
Click To Expand
ios/Podfile:
I'm not using Pods
I'm using Pods and my Podfile looks like:
# N/A
AppDelegate.m:
// N/A
Android
Click To Expand
Have you converted to AndroidX?
my application is an AndroidX application?
I am using android/gradle.settingsjetifier=true for Android compatibility?
I am using the NPM package jetifier for react-native compatibility?
android/build.gradle:
// N/A
android/app/build.gradle:
// N/A
android/settings.gradle:
// N/A
MainApplication.java:
// N/A
AndroidManifest.xml:
<!-- N/A -->
Environment
Click To Expand
react-native info output:
OUTPUT GOES HERE
Platform that you're experiencing the issue on:
iOS
Android
iOS but have not tested behavior on Android
Android but have not tested behavior on iOS
Both
react-native-firebase version you're using that has this issue:
e.g. 5.4.3
Firebase module(s) you're using that has the issue:
Maintainer edit:
workaround is to either
RCT_USE_PREBUILT_RNCORE=0in your Podfile (or the equivalent) or that set in your environment as you runpod installto disable the pre-compiled react-native build] -- see https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh for an example, specifically https://github.com/mikehardy/rnfbdemo/blob/270b7ea0df6a6899fcff1e0ca9b7f4389078fbe5/make-demo.sh#L310-L312 for one way to disable prebuilt rncoreor
Issue
I am upgrading an existing, barebone-RN app using RN Firebase from RN@0.83 to RN@0.84. All looks fine for Android, however for iOS it fails to build with the following errors:
I'm not sure out of my head what is the purpose of
<React/RCTConvert.h>, however in other places it similarly complains about imports of<React/RCTBridgeModule.h>and<React/RCTEventEmitter.h>, which I don't have to import inside my own libraries to support communication between JS and native layers in the latest RN versions... so guess that is just some legacy code which relies on legacy stuff removed (or hidden) now from RN?Project Files
Javascript
Click To Expand
package.json:# N/Afirebase.jsonfor react-native-firebase v6:# N/AiOS
Click To Expand
ios/Podfile:# N/AAppDelegate.m:// N/AAndroid
Click To Expand
Have you converted to AndroidX?
android/gradle.settingsjetifier=truefor Android compatibility?jetifierfor react-native compatibility?android/build.gradle:// N/Aandroid/app/build.gradle:// N/Aandroid/settings.gradle:// N/AMainApplication.java:// N/AAndroidManifest.xml:<!-- N/A -->Environment
Click To Expand
react-native infooutput:react-native-firebaseversion you're using that has this issue:e.g. 5.4.3Firebasemodule(s) you're using that has the issue:e.g. Instance IDTypeScript?Y/N&VERSIONReact Native FirebaseandInvertaseon Twitter for updates on the library.