-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
FirebasePlugin.h:4:9: fatal error: module 'FirebaseFirestore' not found #735
Comments
Ran into same issue. Went back to cordova-plugin-firebasex: 14.0.0 and seems to compile in xcode. |
I have seen the same issue, I resolve it by manually changing Podfile to force download Firestore.
I think the issue occurs because Sorry for my bad English |
Created PR. Because I spent several hours to figure it out. Thanks @FalconKul |
EDIT: For some reason, this is not working for me anymore. Use @FalconKul's suggestion above. I'm leaving this here in case it might be helpful to some. So, I discovered a workaround, at least in my case. I am using an M1 Mac and I saw a suggestion to run Xcode on Rosetta. After I doing that, Xcode now successfully builds the app. Basically:
|
Seems like this issue might be specific to Apple Silicon: invertase/firestore-ios-sdk-frameworks#51 The reason for not using the Firestore Pod directly from the Firebase SDK is that it needs to be compiled from scratch which can take a very long time - upwards of 30 minutes on an old Mac: This was resolved by using a git repo which contains a pre-compiled version of Firestore which significantly decreases build time: But it seems from the issue raised against |
I am using an Intel-based Mac and Can someone with an M1 Mac try adding |
@dpa99c note you already have On my M1 Mac, I get this error using
|
I have this issue on GitHub Actions - Mac runner. They don't use M1, do they? |
@dpa99c Is there a pre-compiled version for Apple Silicon, if none, then this is still a problem. Now, if there is a pre-compiled version for Apple Silicon, is it the version being installed by cocoapods? It looks like @FalconKul's suggestion above is still the solution to this. |
This method builds the app fine on emulators , but the app itself is stuck on the splashscreen, without any error |
Just to clarify previous comments/suggestions - I'm still doing my builds on an Intel-based mbp and it's throwing the "Module 'FirebaseFirestore' not found" error when I try to analyze the app. I'm able to build it, and even run it on my local device. But I can't get it uploaded to the app store as it won't pass basic checks. |
I had this same problem. What worked for me is to also set Simulator to open using Rosetta (if that's what you mean by emulator). |
I'm using intel and I'm running into this error when trying to archive from Xcode, I'll update if I find something (using this plugin on the latest version) |
Ok, so far I had to use the pod directly, because it was blocking my update. I've tried a couple of things that did not work. A weird thing that did happen to me was that the build DID WORK on an emulator and my device. But when I tried building the ipa for release, it got stuck here. |
How many hours do people spend trying to correct this issue? Is it worth of 15 minutes of compilation on some old PC? |
I have tried all the suggestion, but to no avail. Version 14.0.0 works fine, 14.1.0 doesn't. I use the same macbook pro (2019), same code, same everything. Both versions use the pre-compiled version of the Firestore Pod mentioned here: #737 (comment) |
would it be possible that the error is not the plugin itself but rather the pre-compiled version of the pod? |
So... some progress here, this seems to be tied to the iOS deployment target for the FirebaseFirestore being I'll update if I get a better way to set this automatically... |
@peitschie do you know of a way to do that within a CI environment? I'm trying to release an update to a mobile app, but I don't have access to a Mac, so I can only build for iOS in the cloud (aka: on somebody else's machine). FWIW: I'm currently using Ionic Appflow, looking to switch to CodeMagic soon. |
Not the prettiest... but here's a cordova hook that does the job for me: Added to
In a file in
|
thanks so much for the prompt response.. 👍🏼
however, Appflow is making things stupendously difficult here:
just for the sake of testing, I switched the hook trigger from
I don't want to hijack this issue with discussions regarding Cordova Hooks in Ionic Appflow, so I'll go do some more digging now and see what else I can find. |
wait!! I mis-typed that... should be Can you see if this works? |
ah, yes.. that executed the hook and fixed the one interest point, considering the reference here to
I'm going to try this again now with explicitly setting the |
@ZaLiTHkA that sounds related to this: invertase/firestore-ios-sdk-frameworks#52 |
FWIW: setting the iOS platform
..so I will dig into this one now then. thank you for the assistance, greatly appreciate it. 🖖🏼 edit: quick follow-up, I actually ended up switching my app from this plugin over to anyways, this is probably not a permanent switch as I do have plans to integrate other Firebase services as well, so I'll still keep tracking this issue. if anyone needs help with testing production builds in Ionic Appflow or (soon) CodeMagic, please do mention me and I'll see what I can do. 👍🏼 |
I face the same issue with Edit: I did some tests with going back and 13.0.1 do compile for iOS without this issue. 14.0.0 fails to compile for iOS with the same issue as in 14.1.0. |
@Leffe108 this workaround here should fix the issue for you: #735 (comment) |
If you have issues with an existing project, run these commands from
Note that in the version you can also specify |
How can I fix this error on ionic appflow ? |
@aliexalter This plugin (as noted) relies on Cordova Hook scripts to configure the native platform projects. Ionic Appflow does not support all of the hooks used by this plugin so it may not work correctly in that build environment. |
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
thenpod install
in the platforms/ios dirpod deintegrate
andpod install
cordova platform rm/add ios
cordova plugin rm/add cordova-plugin-firebasex
cordova clean
The text was updated successfully, but these errors were encountered: