i am getting this error in react native for ios when including firebase storage ‘FirebaseStorage/FirebaseStorage-Swift.h’ file not discovered


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'
set up! 'cocoapods', :deterministic_uuids => false

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


goal 'schooler' do
  config = use_native_modules!

  $RNFirebaseAsStaticFramework = true

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

  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    # Upcoming variations of React Native might depend on get_default_flags(), however
    # we make it express right here to assist within the React Native improve course of.
    :hermes_enabled => true,
    :fabric_enabled => flags[:fabric_enabled],
    # Allows Flipper.
    #
    # Notice that when you've got use_frameworks! enabled, Flipper is not going to work and
    # it's best to disable the following line.
    :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your software root.
    :app_path => "#{Pod::Config.occasion.installation_root}/.."
  )

  goal 'schoolerTests' do
    inherit! :full
    # Pods for testing
  finish

  post_install do |installer|
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` with a view to apply patches
      # crucial for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  finish
finish

Leave a Reply