# No visible @interface error when building ios

**URL:** <https://forum.ionicframework.com/t/no-visible-interface-error-when-building-ios/147805>\
**Category:** ionic-v3\
**Created:** [November 17, 2018, 1:38am UTC](https://forum.ionicframework.com/t/no-visible-interface-error-when-building-ios/147805 "2018-11-17T01:38:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![obinnae](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Post date:** [November 17, 2018, 1:38am UTC](https://forum.ionicframework.com/t/no-visible-interface-error-when-building-ios/147805/1 "2018-11-17T01:38:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![obinnae](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Post date:** [November 19, 2018, 1:54pm UTC](https://forum.ionicframework.com/t/no-visible-interface-error-when-building-ios/147805/2 "2018-11-19T13:54:50Z")

</div>

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](https://medium.com/@senning/push-notifications-with-ionic-and-cordova-plugin-firebase-ab0c0cad3cc0). Hope this helps someone else!

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:09pm UTC](https://forum.ionicframework.com/t/no-visible-interface-error-when-building-ios/147805/4 "2021-07-19T21:09:26Z")

</div>


