ostownsville / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
21 stars 17 forks source link

FirebaseAnalytics.h file not found fatal error #23

Closed junerockwell closed 6 years ago

junerockwell commented 6 years ago

Please see screenshot below for the issue: screen shot 2017-10-19 at 9 15 42 am__

Since I couldn't install this specific cordova-plugin-fcm via Cordova CLI/NPM (see issue #20), I decided to download straight from GitHub. I copied over the files in to the Cordova project's plugins folder. Then I typed sudo cordova build ios and I get this fatal error. Looking through the path in iOS, I do not see a folder FirebaseAnalytics or a FirebaseAnalytics.h file.

screen shot 2017-10-19 at 9 25 08 am__

So far, I have not tried Android.

Using: MacOSX 10.12.16 Node: v8.0.0 Npm: v5.0.0 Cordova: 7.0.1 Ionic CLI: 3.7.0 Ionic Framework: 1.3.3

chrisjpalmer commented 6 years ago

Hi @junerockwell

I am looking at your issue now. Now you may think that the import path is wrong but actually the path <FirebaseAnalytics/FirebasAnalytics.h> is specifying:

The FirebaseAnalytics framework is located in plugins/cordova-plugin-fcm/src/ios/Firebase/Analytics/FirebaseAnalytics.framework

Inside the framework itself are a number of headers:

image

I am unfortunately not able to replicate the issue on my machine. Try the following and if no luck, post back:

CowboyCode commented 6 years ago

@junerockwell In case that you use ios@4.5.x, you need to remove the cordova-plugin-console (may named differently, cant 100% remember), that plugin is already integrated.

May remove the plugin and remove and add the ios platform. With the newest version, you need to make sure, for Android, that you use android@6.2.x, the 6.3 version has issues. See changes in read me.

Close this for now