Skip to content
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

[🐛] 'FirebaseFunctions/FirebaseFunctions-Swift.h' file not found #6382

Closed
nicolas-wl opened this issue Jul 11, 2022 · 48 comments
Closed

[🐛] 'FirebaseFunctions/FirebaseFunctions-Swift.h' file not found #6382

nicolas-wl opened this issue Jul 11, 2022 · 48 comments
Labels
blocked: react-native Issue or PR blocked by a React Native issue or change. platform: ios

Comments

@nicolas-wl
Copy link
Contributor

nicolas-wl commented Jul 11, 2022

When building for iOS, I keep getting the following error:

In file included from .../node_modules/@react-native-firebase/storage/ios/RNFBStorage/RNFBStorageModule.m:18:
.../my-app/ios/Pods/Headers/Private/Firebase/Firebase.h:54:13: fatal error: 'FirebaseFunctions/FirebaseFunctions-Swift.h' file not found
    #import <FirebaseFunctions/FirebaseFunctions-Swift.h>

dependencies are all at latest version

    "@react-native-firebase/app": "^15.1.1",
    "@react-native-firebase/auth": "^15.1.1",
    "@react-native-firebase/firestore": "^15.1.1",
    "@react-native-firebase/functions": "^15.1.1",
    "@react-native-firebase/messaging": "^15.1.1",
    "@react-native-firebase/storage": "^15.1.1",

podfile

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'

platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

target 'MyApp' do
  config = use_native_modules!

  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true
  pod 'FirebaseAppCheckInterop', :modular_headers => true
  pod 'FirebaseAuthInterop', :modular_headers => true
  pod 'FirebaseMessagingInterop', :modular_headers => true
  pod 'GTMSessionFetcher', :modular_headers => true
  pod 'FirebaseStorageInternal', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true
  $RNFirebaseAsStaticFramework = true

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )
  
target 'MyAppTests' do
inherit! :complete
# Pods for testing
end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  use_flipper!()

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end

end
  
  
@mikehardy
Copy link
Collaborator

🤔 Hmm

I don't recognize these, but I see them show up pretty frequently now that use_frameworks is required. Why are these here? Where does the recommendation to turn them on come from? What problem do they solve, if you cannot build currently?


  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true
  pod 'FirebaseAppCheckInterop', :modular_headers => true
  pod 'FirebaseAuthInterop', :modular_headers => true
  pod 'FirebaseMessagingInterop', :modular_headers => true
  pod 'GTMSessionFetcher', :modular_headers => true
  pod 'FirebaseStorageInternal', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true

Flipper is not going to work with use_frameworks - that's not fixed yet as far as I know:

  use_flipper!()

Does my demo script (still on 0.69.0, sorry - but reasonably representative) work for you? https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh

Does it still work if you chop the installed modules down to just the ones you use?

@octiva
Copy link

octiva commented Jul 20, 2022

Hey, im also experience the same issue, and have a very similar Podfile. This issue only seems to occur after adding firebase storage.

@mikehardy the usage of the specific pod 'Firebase', :modular_headers => true... come from this issue comment

We are using these in leu of the use_framework due to its incompatibility with Flipper.

I believe the issue may also be related to a recent issue in FirebaseUI-IOS here, which looks to have been resolved here.
Would be interested to know if the react-native-firebase package has incorporated these changes.

Keen to discuss, and if I find a working solution with Flipper, I will provide.

@dpyeates
Copy link

dpyeates commented Jul 20, 2022

I'm getting this as well with FB Storage

Screenshot 2022-07-19 at 18 06 38

I can confirm that if I remove @react-native-firebase/storage from my build then things work OK.

@mikehardy
Copy link
Collaborator

mikehardy commented Jul 20, 2022

@octiva i just did a release last night that has latest iOS SDK dependency so if it's released, it's available here

Not sure what's going on with the storage compile fail? Dies the make-demo.sh I link everywhere work? It has storage and it works for me ? 🤔

@octiva
Copy link

octiva commented Jul 20, 2022

@mikehardy I cant see the new release version, will this be v15.1.2?
EDIT: Release is v15.2.0

@mikehardy
Copy link
Collaborator

@mikehardy I cant see the new release version, will this be v15.1.2?

Apologies thought I published but did not, job running now...

@octiva
Copy link

octiva commented Jul 21, 2022

@mikehardy I just tested v15.2.0 and unfortunately im still getting the same build error.

I have investigated a little more, but with no success. Will be moving on from this and following a less ideal path of using the Firebase web package in the app for Storage.

Will likely look to pick this back up at some point, but my gut feeling is that it is upstream of this package and likely needs to be resolved in FirebaseUI-iOS.

@mikehardy
Copy link
Collaborator

I read through the changes in linked FirebaseUI area, and this is the style of change they did:

https://github.com/firebase/FirebaseUI-iOS/pull/1029/files#diff-96e8c12e050b3b6165fc44b0c8302fcae849e20049f7bc93ff24c1ded1d64303

#if __has_include(<FirebaseStorage/FirebaseStorage.h>)
  // Firebase 8.x
  #import <FirebaseStorage/FirebaseStorage.h>
#elif __has_include(<FirebaseStorage/FirebaseStorage-Swift.h>)
  // Firebase 9.0+
  #import <FirebaseStorage/FirebaseStorage-Swift.h>
#else
  @import FirebaseStorage;
#endif

We are all 9+ though, so we just changed the import. I think cocoapods might generate that with use_frameworks, as that seems to be the variable here, that this is happening and if I understand correctly, the projects are attempting to set $RNFirebaseAsStaticFramework to true and use_modular_headers but not set use_frameworks itself ?

@dpyeates
Copy link

dpyeates commented Jul 22, 2022

@mikehardy "if I understand correctly, the projects are attempting to set $RNFirebaseAsStaticFramework to true and use_modular_headers but not set use_frameworks itself ?", yes that is exactly the case. I cannot use use_frameworks as I also use react-native-skia which does not work with frameworks. The other FB modules work OK, it is just storage that seems to have an issue.

@mikehardy
Copy link
Collaborator

mikehardy commented Jul 22, 2022

I think based on a thread upstream that cocoapods generates the Swift bridging header file for storage, only in response to the use frameworks toggle. This may be the fundamental reason for the new requirement to use that toggle, perhaps Paul Bausterien knows that for sure - I'm mobile and cannot tag them properly unfortunately

@Fortidude
Copy link

In file included from /client/node_modules/@react-native-firebase/app/ios/RNFBApp/RNFBAppModule.m:18:
/client/ios/Pods/Headers/Private/Firebase/Firebase.h:54:13: fatal error: 'FirebaseFunctions/FirebaseFunctions-Swift.h' file not found
    #import <FirebaseFunctions/FirebaseFunctions-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

RN 0.68, firebase 15.2.0, podfile:

  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true
  pod 'FirebaseAppCheckInterop', :modular_headers => true
  pod 'FirebaseAuthInterop', :modular_headers => true
  pod 'FirebaseMessagingInterop', :modular_headers => true
  pod 'GTMSessionFetcher', :modular_headers => true
  pod 'FirebaseStorageInternal', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true

Any ideas? 🤔

@mikehardy
Copy link
Collaborator

@Fortidude this looks like the equivalent problem from storage except for functions. The firebase-ios-sdk release notes are clear, use_frameworks is required. Are you using that flag in your podfile? @paulb777 may be able to elaborate on this specific integration need in cocoapods? I had enough time just now to properly tag him in 😅

@paulb777
Copy link
Contributor

While the modular_headers workarounds may work for the other Firebase pods, with Firebase 9, frameworks are required for FirebaseStorage and FirebaseFunctions.

@ithustle
Copy link

ithustle commented Jul 24, 2022

While the modular_headers workarounds may work for the other Firebase pods, with Firebase 9, frameworks are required for FirebaseStorage and FirebaseFunctions.

@paulb777 can you show how to user modular_headers?

@mikehardy

The firebase-ios-sdk release notes are clear, use_frameworks is required

use_frameworks is conflicting with use_flipper ... How can we get away of that?

@mikehardy
Copy link
Collaborator

@ithustle you cannot get away from it I think.

Flipper must be fixed to work in use_frameworks mode, or you must disable Flipper, or you must stay on react-native-firebase <= v14

There is no other way I'm aware of

I'm working on these things (Flipper + use_frameworks compatibility, and Hermes + use_frameworks compatibility which will hopefully be in react-native 0.70) but it will take some time, months I suspect.

So I'm going to close this as a sort of "blocked by upstream" resolution.

for Functions and Storage you must have use_frameworks set. For others, at least for now, you may import them directly with modular_headers set but it is not supported, it just happens to work for now.

The use_frameworks setting does cause problems with other modules, and with Flipper, and with Hermes, but those are problems with those modules, with Flipper and with Hermes, and should be pursued as problems there. I'm doing that with Flipper and Hermes but now with other modules, I'll need other people to pursue those.

@mikehardy mikehardy added platform: ios blocked: react-native Issue or PR blocked by a React Native issue or change. Resolution: Solution Provided and removed type: bug New bug report help: needs-triage Issue needs additional investigation/triaging. labels Jul 24, 2022
@codekojo
Copy link

codekojo commented Jul 25, 2022

I'm getting this as well with FB Storage

Screenshot 2022-07-19 at 18 06 38

I can confirm that if I remove @react-native-firebase/storage from my build then things work OK.

I am getting the same error.

@elinahovakimyan
Copy link

I ended up downgrading to firebase@14 all the firebase packages to be able to use storage with flipper.

@codekojo
Copy link

I ended up downgrading to firebase@14 all the firebase packages to be able to use storage with flipper.

Can you share you package.json?

@elinahovakimyan
Copy link

Here are the packages I use and the Podfile
Screen Shot 2022-07-26 at 00 25 19
Screen Shot 2022-07-26 at 00 23 46

@juanctecdam
Copy link

Little frustating... I need to use Appcheck and as soon as I upgrade to version 15, I can't get a thing to work..

@juanctecdam
Copy link

@ithustle Thing is that I need to add to my project AppCheck which depends on the latest version(15) of RN Firebase. I tried to make it as modules, but it always complains about FirebaseStorage-Swift. I tried with use_frameworks and that stopped complaining about this library but I have another library not compiling.
Frustrating cause I can't get to fix this and we need a solution.

@guthriet1230
Copy link

Any progress here? I'm stuck with the same error specific to Firebase Storage only (@15.2)

@mikehardy
Copy link
Collaborator

@juanctecdam AppCheck has been available for more than a year, it is available in v14.

Firebase storage and Firebase functions require use_frameworks! in your Podfile, it's what generates those files. If you can't use use_frameworks, and you ned functions and/or storage, you can't use v15. There's no simpler way to put it unfortunately. Use v14 in that case and help in the underlying issues (with flipper or whatever the 3rd party module is that has a problem) in order to get use_frameworks! to work then this whole thing will move forward and get easier for everyone

@gitcoder-23
Copy link

hi,
I am facing same issue fatal error: 'FirebaseStorage/FirebaseStorage-Swift.h' file not found #import <FirebaseStorage/FirebaseStorage-Swift.h> .. please help to fix this problem

@mikehardy
Copy link
Collaborator

@gitcoder-23 that's what you see if you do not enable use_frameworks! :linkage => :static in your Podfile. Storage and functions require use frameworks unconditionally, the workarounds others mention are only valid temporarily (until other modules require it unconditionally) and are not valid for storage and functions. My last comment above states the same.

@gitcoder-23
Copy link

@mikehardy Hi, Thanks. But now fatal error: 'FlipperKit/FlipperClient.h' file not found.. please help

@mikehardy
Copy link
Collaborator

@gitcoder-23 you must read the instructions. Flipper is not compatible with use_frameworks. This may not be what you want to hear but is nevertheless reality, and is documented:

https://rnfirebase.io/#altering-cocoapods-to-use-frameworks (big note there)
https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md#breaking-changes Huge breaking changes note there

@kaliseo34
Copy link

@gitcoder-23 you must read the instructions. Flipper is not compatible with use_frameworks. This may not be what you want to hear but is nevertheless reality, and is documented:

https://rnfirebase.io/#altering-cocoapods-to-use-frameworks (big note there) https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md#breaking-changes Huge breaking changes note there

Hi,

Disabling Hermes & Flipper causes app crash on build by my side.. I'll need another solution to manage files for the moment :s

Anybody found the solution ?

@mikehardy
Copy link
Collaborator

mikehardy commented Oct 12, 2022

Disabling Hermes & Flipper causes app crash on build by my side

That's really unexpected, if you provided any sort of details (https://stackoverflow.com/help/how-to-ask) I/we might be able to help. I can tell you that it should work though, I just re-ran my build test rig yesterday and it was fine https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh

You probably don't need to disable Hermes though, for what it's worth. Hermes appears to work well now. Flipper still definitely not working.

@kaliseo34
Copy link

I made some changes regarding your script :

Replacing use_frameworks! by use_frameworks! :linkage => :static
Moving $RNFirebaseAsStaticFramework = true from top of file to next line of use_frameworks
Uncomment line :flipper_configuration => FlipperConfiguration.enabled, & remplace enabled with disabled

And it worked !

Thanks a lot for your help !

@danias
Copy link

danias commented Nov 23, 2022

I made some changes regarding your script :

Replacing use_frameworks! by use_frameworks! :linkage => :static
Moving $RNFirebaseAsStaticFramework = true from top of file to next line of use_frameworks
Uncomment line :flipper_configuration => FlipperConfiguration.enabled, & remplace enabled with disabled

And it worked !

Thanks a lot for your help !

Can you please post the whole of your pod file?

@mikehardy
Copy link
Collaborator

@danias you can run this script any time

I keep it up to date / in sync with current react-native as I work with react-native releases group to test new releases so it's always pretty fresh

It generates a Podfile that works https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh

@alexander0205
Copy link

Is working for me with the version 14.11.1 and $FirebaseSDKVersion = '8.15.0'

@alexander0205
Copy link

Here are the packages I use and the Podfile Screen Shot 2022-07-26 at 00 25 19 Screen Shot 2022-07-26 at 00 23 46

And adding $FirebaseSDKVersion = '8.15.0'

@mikehardy
Copy link
Collaborator

It is working for you because you have specifically downgraded to a version of react-native-firebase that includes a version of firebase-ios-sdk from before they converted that to Swift (and before they started requiring use_frameworks)

So sure, if you downgrade you can "workaround" this problem.

However, you will have bought yourself other problems. Check the release notes and see if any of the changes between firebase-ios-sdk 8.15.0 and 10.2.0 (soon to be 10.3.0 here) are for issues that will cause you problems https://firebase.google.com/support/release-notes/ios

@yoannes
Copy link

yoannes commented Dec 12, 2022

This worked for me, thanks

#6382 (comment)

@abumubaarak
Copy link

I had to remove Flipper and add use_frameworks! :linkage => :static

@mikehardy
Copy link
Collaborator

I had to remove Flipper and add use_frameworks! :linkage => :static

Yes, as we document here: https://rnfirebase.io/#altering-cocoapods-to-use-frameworks

@rishiankush
Copy link

Not at all working for me. I tried every solution. Please check my podfile and screenshot for error below:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false
use_frameworks! :linkage => :static
target 'lovelocalPartner' do
  config = use_native_modules!
  # Flags change depending on the env values.
  flags = get_default_flags()
  $RNFirebaseAsStaticFramework = true
  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    # Upcoming versions of React Native may rely on get_default_flags(), but
    # we make it explicit here to aid in the React Native upgrade process.
    :hermes_enabled => true,
    :fabric_enabled => flags[:fabric_enabled],
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable the next line.
    # :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )
  target 'lovelocalPartnerTests' do
    inherit! :complete
    # Pods for testing
  end
  post_install do |installer|
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

Screenshot 2023-01-09 at 1 07 11 PM

@nppull
Copy link

nppull commented Feb 9, 2023

react-native 0.70.0
react-native-firebase 17.0

  1. add

target 'Example' do
config = use_native_modules!
$RNFirebaseAsStaticFramework = true
use_frameworks! :linkage => :static

  1. and comment flipper

:flipper_configuration => FlipperConfiguration.enabled,

that work for me.

@devlprkhan
Copy link

Yes 🥹 🙌, Finally I resolve the issue,

Resolve react_native_pods.rb with node to allow for hoisting

require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', dir]).strip

use_modular_headers!

platform :ios, min_ios_version_supported
prepare_react_native_project!

If you are using a react-native-flipper your iOS build will fail when NO_FLIPPER=1 is set.

because react-native-flipper depends on (FlipperKit,...) that will be excluded

To fix this you can also exclude react-native-flipper using a react-native.config.js

```js

module.exports = {

dependencies: {

...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),

```

flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green

use_frameworks! :linkage => linkage.to_sym

use_frameworks! :linkage => :static
end

target 'BoloNow' do
config = use_native_modules!
$RNFirebaseAsStaticFramework = true
use_frameworks! :linkage => :static

Flags change depending on the env values.

flags = get_default_flags()

pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseStorage', :modular_headers => true
pod 'FirebaseAppCheckInterop', :modular_headers => true
pod 'FirebaseAuthInterop', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'GTMSessionFetcher', :modular_headers => true
pod 'FirebaseFunctions', :modular_headers => true
pod 'FirebaseMessagingInterop', :modular_headers => true
pod 'RNFBFirestore', :path => '../node_modules/@react-native-firebase/firestore'
pod 'RNFBStorage', :path => '../node_modules/@react-native-firebase/storage'

use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => FlipperConfiguration.disabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'BoloNowTests' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end

end

@RKhatri93
Copy link

I've encountered persistent challenges integrating Firebase Cloud Functions and Storage in my React Native project. Despite previous attempts and following suggestions, the error related to 'FirebaseFunctions/FirebaseFunctions-Swift.h' file persists.

Screenshot 2023-12-13 at 3 38 32 PM

Key Points:
React Native Version: 0.72.6
Firebase Version: 18.7.3
With new react native architecture
Firebase Pods Configuration: Firebase pods were added with modular headers

What I've Tried:
Checked and reconfirmed pod configurations.
Reviewed and ensured Firebase pods were correctly linked.

Current Impact:
This issue continues to prevent the utilization of essential Firebase features crucial for the app's functionality.

Request:
Seeking further assistance or alternative solutions to resolve this persisting issue and successfully integrate Firebase Cloud Functions and Storage into the React Native project. Any new insights or suggestions are greatly appreciated. Thank you for your ongoing support.

@mikehardy
Copy link
Collaborator

Firebase Pods Configuration: Firebase pods were added with modular headers

Don't do that, or if you do that do not come here for support.

use_frameworks! :linkage => :static is a STRICT REQUIREMENT as documented

You are attempting to use the module contrary to the documentation so no support is provided

@russplusplus
Copy link

russplusplus commented Dec 19, 2023

Hey all, I had the same problem and following the "Getting Started" instructions on this page completely solved it for me: https://rnfirebase.io/

@n-kulic
Copy link

n-kulic commented Jan 8, 2024

@ithustle you cannot get away from it I think.

Flipper must be fixed to work in use_frameworks mode, or you must disable Flipper, or you must stay on react-native-firebase <= v14

There is no other way I'm aware of

I'm working on these things (Flipper + use_frameworks compatibility, and Hermes + use_frameworks compatibility which will hopefully be in react-native 0.70) but it will take some time, months I suspect.

So I'm going to close this as a sort of "blocked by upstream" resolution.

for Functions and Storage you must have use_frameworks set. For others, at least for now, you may import them directly with modular_headers set but it is not supported, it just happens to work for now.

The use_frameworks setting does cause problems with other modules, and with Flipper, and with Hermes, but those are problems with those modules, with Flipper and with Hermes, and should be pursued as problems there. I'm doing that with Flipper and Hermes but now with other modules, I'll need other people to pursue those.

Hello, checking back on this.
Has there been progress or changes in debugging React Native in this context (use_frameworks conflicting with use_flipper)? Any other workarounds besides downgrading firebase packages?
Any insights would be appreciated!

@mikehardy
Copy link
Collaborator

No. firebase-ios-sdk requires use_frameworks, and Flipper does not work with it.
Moreover, Flipper is deprecated in the react-native ecosystem, so this will likely never change.

Before anyone posts on this again and triggers notifications please do the research - answer these questions 1) is Flipper still the way to debug things in react-native and 2) after checking the Flipper repo does it work with use_frameworks?

Check those things. Answer yes to both questions if you can, then post.

@tunadag
Copy link

tunadag commented Aug 17, 2024

Hey all, I had the same problem and following the "Getting Started" instructions on this page completely solved it for me: https://rnfirebase.io/

Thanks a lot, actually you made my day, I was struggling with it for hours, that documentation also solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: react-native Issue or PR blocked by a React Native issue or change. platform: ios
Projects
None yet
Development

No branches or pull requests