ReallySmallSoftware / cordova-plugin-firebase-crashlytics

Google Firebase Crashlytics Cordova plugin
Other
33 stars 80 forks source link

<Firebase/Firebase.h> not found #40

Open holmio opened 4 years ago

holmio commented 4 years ago

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

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1) 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 commented 4 years ago

Any update on this issue please?

ReallySmallSoftware commented 4 years ago

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

tomspee commented 4 years ago

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 commented 3 years ago

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

nationdata-it commented 3 years ago

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

holmio commented 3 years ago

What helped me was to install pod 'Firebase'

nationdata-it commented 3 years ago

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

pietos commented 3 years ago

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 commented 3 years ago

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
liviuc5psolutions commented 2 years ago

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