dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
569 stars 461 forks source link

Cordova iOS App Build Failed "Module 'FirebaseFunctions' not found" #646

Open PeKuki opened 3 years ago

PeKuki commented 3 years ago

Frameworks in Pod File: pod 'ZXingObjC', '3.6.5' pod 'Firebase/Core', '7.6.0' pod 'Firebase/Auth', '7.6.0' pod 'Firebase/Messaging', '7.6.0' pod 'Firebase/Performance', '7.6.0' pod 'Firebase/RemoteConfig', '7.6.0' pod 'Firebase/InAppMessaging', '7.6.0' pod 'Firebase/Firestore', '7.6.0' pod 'Firebase/Crashlytics', '7.6.0' pod 'GoogleSignIn', '5.0.2' pod 'GoogleTagManager', '7.2.0'

I also added Cordova "cordova-plugin-ionic-keyboard": {} but the iOS App build failed with the following error: Module 'FirebaseFunctions' not found. Bildschirmfoto 2021-07-22 um 07 37 45

dpa99c commented 3 years ago

FirebaseFunctions is a new Firebase SDK component so the most likely cause is your local pods repo is out-of-date - please see the documentation for how to resolve this.

You can validate your build environment against a known working codebase by building the example project

PeKuki commented 3 years ago

Now I have another error, Module 'FirebaseFirestore' not found. Bildschirmfoto 2021-07-22 um 14 44 13

dpa99c commented 3 years ago

are you encountering this when trying to build your own project or the example project?

either way it looks like an issue satisfying the cocopods dependencies in your build env. I recommend removing the platform project (cordova platform rm ios --nosave) and re-adding with verbose logging (cordova platform add ios --verbose) and inspect the console output for errors.

DiegoIMM commented 3 years ago

I have the same issue in my work project, I can deploy the app in my own iPhone and Android device, but I can't emulate the app on the iOS simulator due to the mentioned error

PeKuki commented 3 years ago

I updated the plugins pod 'Firebase/Core', '8.4.0' pod 'Firebase/Auth', '8.4.0' pod 'Firebase/Messaging', '8.4.0' pod 'Firebase/Performance', '8.4.0' pod 'Firebase/RemoteConfig', '8.4.0' pod 'Firebase/InAppMessaging', '8.4.0' pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.4.0' pod 'Firebase/Crashlytics', '8.4.0' pod 'GoogleSignIn', '5.0.2' pod 'GoogleTagManager', '7.3.1'

but now I am getting another error:
Bildschirmfoto 2021-07-27 um 14 54 15

dpa99c commented 3 years ago

Looks like you're using an old version of this plugin because FirebaseInstanceID has been deprecated and removed from recent versions of the Firebase SDK for iOS and has therefore been removed from latest versions of this plugin.

Please update to the latest plugin version (v13.0.1) and re-test.

PeKuki commented 3 years ago

I updated this framework, but now Xcode cannot find Firebase Messaging Bildschirmfoto 2021-07-27 um 17 42 05

mbaierPVG commented 2 years ago

I have the same problem...

selfee-jp commented 2 years ago

@dpa99c

I have the same problem.

cordova-plugin-firebasexz 1.13.1

corvova

Does this have anything to do with it? https://githubmemory.com/repo/invertase/firestore-ios-sdk-frameworks/issues/28

ionut-tanasa commented 2 years ago

i have the same issue when i build from command line, using xcode it builds successfully.

see https://github.com/dpa99c/cordova-plugin-firebasex/issues/654

codexsysin commented 2 years ago

We've fixed this issue by adding

and also matching the ios version number on both the Pod file and Deployment Target.

Deployment Target:

Screenshot 2022-03-03 at 12 58 54 AM

Pod File:

Screenshot 2022-03-03 at 12 59 14 AM