Saturday, June 13, 2026
HomeiOS DevelopmentConstruct error in ionic capacitor iOS app ‘Firebase.h’ not discovered

Construct error in ionic capacitor iOS app ‘Firebase.h’ not discovered

[ad_1]

I am new to cross platform and cellular dev on the whole. I’m utilizing ionic6 with Angular and Capacitor3.
I’m making an attempt to make an app that makes use of push notifications (with Firebase). I had managed to compile my iOS app as soon as, however on my 2nd try it did not work though I hadn’t modified something.
I’ve adopted this documentation
https://capacitorjs.com/docs/guides/push-notifications-firebase
In addition to this tutorial (I’ve copied the code from the doc because the tutorial is a little bit outdated)
https://devdactic.com/push-notifications-ionic-capacitor/

Once I construct my app, i get this error :

/Customers/usr/Paperwork/my-app/ios/capacitor-cordova-ios-plugins/sources/CordovaPluginFcmWithDependecyUpdated/FCMPlugin.m:8:9: ‘Firebase.h’ file not discovered with embrace; use “quotes” as an alternative”

If I alter #import <Firebase.h> into #import “Firebase.h” as instructed, then I get his error :

/Customers/usr/Paperwork/my-app/ios/capacitor-cordova-ios-plugins/sources/CordovaPluginFcmWithDependecyUpdated/AppDelegate+FCMPlugin.m:215:7: Use of undeclared identifier ‘FIRInstanceID’

FIRInstanceID_error_image

I learn someplace that I solely have to remark it because it’s deprecated. Which leads me to this error :

Undefined image: OBJC_CLASS$_FIRAnalytics

FIRAnalytics_error_image

I’ve tried virtually every thing I may discover on-line however nothing works. I have been caught right here for every week now.
Please let me know when you’ve got any leads or when you want extra info (ideally how one can get it since I am nonetheless new to this, I could not know how one can)

Thanks very a lot prematurely !

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments