Saturday, November 21, 2026
HomeiOS Developmentxcode - React Native - Firebase storage construct fails on IOS

xcode – React Native – Firebase storage construct fails on IOS

[ad_1]

I’ve a react native app with firebase database and authentication correctly put in and dealing. Nonetheless, once I set up firebase storage, android runs and works correctly however IOS fails. I’ve connected my podfile, package deal.json and the error under.

The problem appears to stem from the message:

Customers/fluffy/Paperwork/Programming/ReactNative/LoveYouDaily/ios/Pods/Headers/Personal/Firebase/Firebase.h:82:13: deadly error: 'FirebaseStorage/FirebaseStorage-Swift.h' file not discovered
    #import <FirebaseStorage/FirebaseStorage-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated. 

I’m not certain why that is occurring however any assistance on clear up this might be drastically appreciated as I can not discover any options on-line. Let me know if extra data is required. Thanks.

package deal.json:

  "title": "LoveYouDaily",
  "model": "0.0.1",
  "personal": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "begin": "react-native begin",
    "check": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-clipboard/clipboard": "^1.11.0",
    "@react-native-firebase/app": "^15.4.0",
    "@react-native-firebase/auth": "^15.4.0",
    "@react-native-firebase/database": "^15.4.0",
    "@react-native-firebase/storage": "^15.4.0",
    "@react-native-masked-view/masked-view": "^0.2.7",
    "@react-navigation/bottom-tabs": "^6.3.3",
    "@react-navigation/native": "^6.0.12",
    "@react-navigation/native-stack": "^6.8.0",
    "lottie-react-native": "^5.1.4",
    "react": "18.0.0",
    "react-native": "0.69.5",
    "react-native-gesture-handler": "^2.6.0",
    "react-native-image-crop-picker": "^0.38.0",
    "react-native-safe-area-context": "^4.3.3",
    "react-native-screens": "^3.17.0",
    "react-native-svg": "^13.1.0",
    "react-native-vector-icons": "^9.2.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "^7.32.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.70.3",
    "react-test-renderer": "18.0.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

PodFile:

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
$RNFirebaseAsStaticFramework = true
manufacturing = ENV["PRODUCTION"] == "1"


goal 'LoveYouDaily' do
  config = use_native_modules!
  # Flags change relying 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 'FirebaseStorageInternal', :modular_headers => true
  pod 'FirebaseAppCheckInterop', :modular_headers => true
  pod 'FirebaseAuthInterop', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true
  
  use_react_native!(
    :path => config[:reactNativePath],
    # to allow hermes on iOS, change `false` to `true` after which set up pods
    :manufacturing => manufacturing,
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your software root.
    :app_path => "#{Pod::Config.occasion.installation_root}/.."
  )

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

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

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments