FirebasePlugin.h:4:9: fatal error: module 'FirebaseFirestore' not found
See original GitHub issuecordova: 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
thenpod install
in the platforms/ios dirpod deintegrate
andpod install
cordova platform rm/add ios
cordova plugin rm/add cordova-plugin-firebasex
cordova clean
- Xcode clean build folder
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:30 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have seen the same issue, I resolve it by manually changing Podfile to force download Firestore. Below is my step to resolve it:
pod 'FirebaseFirestore', :tag => '9.1.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git'
bypod 'Firebase/Firestore', '9.1.0'
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 moduleSorry for my bad English
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 variableIOS_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:Note that in the version you can also specify
IOS_FIREBASE_SDK_VERSION
to override the version of the Firebase iOS SDK pinned inplugin.xml
.