-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
help: iosNeeds help implementing or reviewing a PR relating to iOS code.Needs help implementing or reviewing a PR relating to iOS code.impact: build-errorBehaviour causing build failureBehaviour causing build failureplatform: iostype: bugNew bug reportNew bug report
Description
Maintainer edit:
workaround is to either
- disable prebuild rncore with environment variable
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 rncore
or
- use Podfile preinstall hook to force static link our Pods --> [🐛] 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 (comment)
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.json for react-native-firebase v6:
# N/AiOS
Click To Expand
ios/Podfile:
- I'm not using Pods
- I'm using Pods and my Podfile looks like:
# N/AAppDelegate.m:
// N/AAndroid
Click To Expand
Have you converted to AndroidX?
- my application is an AndroidX application?
- I am using
android/gradle.settingsjetifier=truefor Android compatibility? - I am using the NPM package
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 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-firebaseversion you're using that has this issue:e.g. 5.4.3
Firebasemodule(s) you're using that has the issue:e.g. Instance ID
- Are you using
TypeScript?Y/N&VERSION
- 👉 Check out
React Native FirebaseandInvertaseon Twitter for updates on the library.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help: iosNeeds help implementing or reviewing a PR relating to iOS code.Needs help implementing or reviewing a PR relating to iOS code.impact: build-errorBehaviour causing build failureBehaviour causing build failureplatform: iostype: bugNew bug reportNew bug report