Cordova-plugin-firebase: iOS build fails with "Property 'delegate' not found on object of type 'FIRMessaging *'"

Created on 25 Aug 2018  路  6Comments  路  Source: arnesson/cordova-plugin-firebase

Ionic Info

Ionic:

   ionic (Ionic CLI)  : 4.1.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.6.1
   @ionic/app-scripts : 2.1.4

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0, browser 5.0.4, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-webview 1.2.1, (and 9 other plugins)

System:

   NodeJS : v10.6.0 (/usr/local/bin/node)
   npm    : 6.4.0
   OS     : macOS High Sierra
   Xcode  : Xcode 9.4.1 Build version 9F2000 

Ionic Errors

** BUILD FAILED **

The following build commands failed:
        CompileC .../Objects-normal/x86_64/FirebasePlugin.o Ekojara/Plugins/cordova-plugin-firebase/FirebasePlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
        CompileC .../Debug-iphonesimulator/Ekojara.build/Objects-normal/x86_64/AppDelegate+FirebasePlugin.o .../Plugins/cordova-plugin-firebase/AppDelegate+FirebasePlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

XCode Error

.../Plugins/cordova-plugin-firebase/AppDelegate+FirebasePlugin.m:55:30: Property 'delegate' not found on object of type 'FIRMessaging *'
build iOS plugin conflict

All 6 comments

Having the same issue here. Any updates?

@bolorundurowb @soumak77 this issue has something to do with cordova-plugin-fcm - I had both plugins installed and cordova-plugin-fcm conflicts with the latest versions (1.0.1) of cordova-plugin-firebase.

Removing it solved the problem, I now have to refactor how I deal with notification using Firebase instead of the standalone FCM plugin...

Hope this helps!

PS: [email protected] [email protected]

@bolorundurowb @soumak77 this issue has something to do with cordova-plugin-fcm - I had both plugins installed and cordova-plugin-fcm conflicts with the latest versions (1.0.1) of cordova-plugin-firebase.

Removing it solved the problem, I now have to refactor how I deal with notification using Firebase instead of the standalone FCM plugin...

Hope this helps!

PS: [email protected] [email protected]

@andyepx

Did u resolved the issue?? I have also same problem

@bolorundurowb @soumak77 this issue has something to do with cordova-plugin-fcm - I had both plugins installed and cordova-plugin-fcm conflicts with the latest versions (1.0.1) of cordova-plugin-firebase.

Removing it solved the problem, I now have to refactor how I deal with notification using Firebase instead of the standalone FCM plugin...

Hope this helps!

PS: [email protected] [email protected]

How were you able to solve this? I'm in the same boat and want to get rid of FCM, as it keeps conflicting with Firebase.

Any thoughts? FCM and Firebase not working together is a drama.

I was able to remove FCM and use Firebase for notifications, thanks to this tutorial https://medium.com/@senning/push-notifications-with-ionic-and-cordova-plugin-firebase-ab0c0cad3cc0. Hope this helps everyone.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

stephan-nordnes-eriksen picture stephan-nordnes-eriksen  路  5Comments

jdla1990 picture jdla1990  路  4Comments

rlz picture rlz  路  4Comments

Zrnik picture Zrnik  路  3Comments