Skip to content
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

<Firebase/Firebase.h> not found #40

Open
holmio opened this issue Aug 28, 2020 · 10 comments
Open

<Firebase/Firebase.h> not found #40

holmio opened this issue Aug 28, 2020 · 10 comments

Comments

@holmio
Copy link

holmio commented Aug 28, 2020

Expected Behavior

XCode should run all functionalities.

Actual Behavior

XCode can not find <Firebase/Firebase.h>

Steps to Reproduce the Problem

Install cordova-plugin-firebase-crashlytics

Specifications

  • Plugin version:

    • "cordova-support-google-services": "1.4.1"
    • "cordova-plugin-firebase-crashlytics": "1.2.0"
  • Framework:

Ionic:

   Ionic CLI                     : 6.9.1
   Ionic Framework               : @ionic/angular 5.3.1
   @angular-devkit/build-angular : 0.803.12
   @angular-devkit/schematics    : 8.3.12
   @angular/cli                  : 8.3.12
   @ionic/angular-toolkit        : 2.3.0

Cordova:

   Cordova CLI       : 9.0.0 ([email protected])
   Cordova Platforms : android 8.0.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 2.5.3, (and 30 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 1.0.0

System:

   Android SDK Tools : 26.1.1 (/Users/mohammdeljamami/Library/Android/sdk)
   ios-deploy        : 1.10.0
   ios-sim           : 8.0.2
   NodeJS            : v14.2.0 (/usr/local/Cellar/node/14.2.0/bin/node)
   npm               : 6.14.4
   OS                : macOS Catalina
   Xcode             : Xcode 11.6 Build version 11E708
@donnie-jp
Copy link

Any update on this issue please?

@ReallySmallSoftware
Copy link
Owner

Sorry - I haven't had a lot of time to look yet

@tomspee
Copy link

tomspee commented Oct 1, 2020

This was an issue for me too with cordova-plugin-firebase-crashlytics version 1.2.0.

I've just changed this line in FirebaseCrashlyticsPlugin.m and now I can build again:
#import <Firebase/Firebase.h> to this #import <FirebaseCore/FirebaseCore.h>

@rVizzini
Copy link

rVizzini commented Nov 10, 2020

If I use #import <FirebaseCore/FirebaseCore.h>, new error appears, in the next line:
Module 'FirebaseCrashlytics' not found

@nationdata-it
Copy link

same for me fixed by adding what suggested by @tomspee .

@holmio
Copy link
Author

holmio commented Nov 25, 2020

What helped me was to install pod 'Firebase'

@nationdata-it
Copy link

Hi All
changing from #import <Firebase/Firebase.h> to this #import <FirebaseCore/FirebaseCore.h> is not reporting any bugs in crashlytics.

@pietos
Copy link

pietos commented Feb 22, 2021

It looks like the old firebase Crashlytics API is being used, because when I look in the plugin.xml file I see that the old POD references are being used. I would suggest not to use this plugin for IOS devices, or you can try to upgrade it yourself:
https://firebase.google.com/docs/crashlytics/upgrade-sdk

@Kosmonaft
Copy link

After following the @tomspee suggestion I got the following error:

Failed to install 'cordova-plugin-firebasex': CordovaError: Uh oh!
File already exists at destination "/Users/my_name/Documents/Projects/mobile-app/platforms/ios/APP_BUNDLE_NAME/Resources/GoogleService-Info.plist" for resource file specified by plugin cordova-plugin-firebasex in iOS platform

JanBussieck pushed a commit to JanBussieck/cordova-plugin-firebase-crashlytics that referenced this issue Jul 1, 2021
@liviuc5psolutions
Copy link

What helped me was to install pod 'Firebase'

At app level in Podfile at the end be sure to have this

target 'App' do
  capacitor_pods
  pod 'Firebase'
  pod 'Firebase/Analytics'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants