Skip to content

[🐛] 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

@birdofpreyru

Description

@birdofpreyru

Maintainer edit:

workaround is to either

  1. disable prebuild rncore with environment variable RCT_USE_PREBUILT_RNCORE=0 in your Podfile (or the equivalent) or that set in your environment as you run pod install to 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

  1. 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:

Image

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.settings jetifier=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:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


Metadata

Metadata

Assignees

No one assigned

    Labels

    help: iosNeeds help implementing or reviewing a PR relating to iOS code.impact: build-errorBehaviour causing build failureplatform: iostype: bugNew bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions