question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FirebasePlugin.h:4:9: fatal error: module 'FirebaseFirestore' not found

See original GitHub issue

cordova: 11.0.0 cordova-ios: 6.2.0 cordova-plugin-firebasex: 14.1.0 (also tried 14.1.0-cli) xcode: 13.4

Error:

In file included from /Users/< user >/< project >/cordova/platforms/ios/< app name >/Plugins/cordova-plugin-firebasex/AppDelegate+FirebasePlugin.m:2: /Users/< user >/< project >/cordova/platforms/ios/< app name >/Plugins/cordova-plugin-firebasex/FirebasePlugin.h:4:9: fatal error: module ‘FirebaseFirestore’ not found @import FirebaseFirestore;

Tried the following but didn’t fix it:

  • pod repo update then pod install in the platforms/ios dir
  • pod deintegrate and pod install
  • cordova platform rm/add ios
  • cordova plugin rm/add cordova-plugin-firebasex
  • cordova clean
  • Xcode clean build folder

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:30 (4 by maintainers)

github_iconTop GitHub Comments

16reactions
FalconKulcommented, May 30, 2022

I have seen the same issue, I resolve it by manually changing Podfile to force download Firestore. Below is my step to resolve it:

  1. Goto platform/ios and remove Podfile.lock
  2. Remove Pods folder
  3. Open Podfile and replace pod 'FirebaseFirestore', :tag => '9.1.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git' by pod 'Firebase/Firestore', '9.1.0'
  4. pod install

I think the issue occurs because pod 'FirebaseFirestore', :tag => '9.1.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git does not contains FirebaseFirestore module

Sorry for my bad English

12reactions
dpa99ccommented, Jul 20, 2022

cordova-plugin-firebasex@14.2.0 has just been published to npm and should resolve this. By default, the plugin will now use the standard pod for Firestore unless you optionally specify the plugin variable IOS_USE_PRECOMPILED_FIRESTORE_POD=true at install time, in which case the pre-compiled version will be used.

If you have issues with an existing project, run these commands from platforms/ios/ as suggested here:

pod deintegrate
pod setup
pod install

Note that in the version you can also specify IOS_FIREBASE_SDK_VERSION to override the version of the Firebase iOS SDK pinned in plugin.xml.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No such module 'FirebaseFirestore' - Stack Overflow
It seems to recognize FirebaseStorage and Firebase fine but not FireStore. Here are the images with problems and some code: error. Code: import ......
Read more >
Module 'Firebase' not found? - Google Groups
But in the last step I got error "Module 'Firebase' not found" when trying @import Firebase; to my project AppDelegate.h. Please help.
Read more >
Firebase.h file not found - ionic-v3
Ionic 3 app with cordova-plugin-firebasex works fine in Android, but in iOS gives the error when doing a build 'Firebase.h' file not found...
Read more >
Could not build Objective-C module 'Firebase'
When I compile the application I get an error equal to this: Could not build Objective-C module 'Firebase'. This error appears in "Import...
Read more >
Command failed with exit code 65 on ios with "dpa99c ...
... ****/Plugins/cordova-plugin-firebasex/FirebasePlugin.h:4:9: fatal error: module 'FirebaseFirestore' not found
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found