No visible @interface error when building ios


#1

Trying to build an Ionic 3 app, I run ionic cordova build ios and I get this error twice

No visible @interface for ‘FIRMessaging’ declares the selector ‘setDelegate:’

and then this

No known class method for selector ‘setScreenName:screenClass:’

The app has GooglePlus plugin, firebase plugin and fcm plugin. I’ve tried removing and adding iOS platform, and also removed and added each of those plugins, but the errors still prevail. I know it’s the Firebase plugin that causes it, but can’t seem to find out why. It worked fine not long ago.

These are my plugins

cordova-admob-sdk 0.19.0 “AdMob SDK”
cordova-plugin-add-swift-support 1.7.1 “AddSwiftSupport”
cordova-plugin-admob-free 0.19.0 “Cordova AdMob Plugin”
cordova-plugin-app-version 0.1.9 “AppVersion”
cordova-plugin-camera 2.4.1 “Camera”
cordova-plugin-compat 1.2.0 “Compat”
cordova-plugin-device 1.1.7 “Device”
cordova-plugin-facebook4 3.1.0 “Facebook Connect”
cordova-plugin-fcm-with-dependecy-updated 2.2.6 “Cordova FCM Push Plugin”
cordova-plugin-firebase 2.0.5 “Google Firebase Plugin”
cordova-plugin-geolocation 4.0.1 “Geolocation”
cordova-plugin-globalization 1.0.9 “Globalization”
cordova-plugin-googleplus 5.3.2 “Google SignIn”
cordova-plugin-hockeyapp 5.1.2 “HockeyApp”
cordova-plugin-nativegeocoder 3.1.2 “NativeGeocoder”
cordova-plugin-nativestorage 2.2.2 “NativeStorage”
cordova-plugin-network-information 2.0.1 “Network Information”
cordova-plugin-splashscreen 4.1.0 “Splashscreen”
cordova-plugin-statusbar 2.4.1 “StatusBar”
cordova-plugin-stripe 1.5.3 “cordova-plugin-stripe”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-promise-polyfill 0.0.2 “cordova-promise-polyfill”
ionic-plugin-keyboard 2.2.1 “Keyboard”

Please help.


#2

Ended up removing the FCM plugin and used Firebase for notifications, thanks to this tutorial https://medium.com/@senning/push-notifications-with-ionic-and-cordova-plugin-firebase-ab0c0cad3cc0. Hope this helps someone else!