arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1.01k stars 1.55k forks source link

iOS build fails with "Property 'delegate' not found on object of type 'FIRMessaging *'" #810

Open bolorundurowb opened 6 years ago

bolorundurowb commented 6 years ago

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 *'
andyepx commented 6 years ago

Having the same issue here. Any updates?

andyepx commented 6 years ago

@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: Ionic@4.1.2 cordova-ios@4.5.5

rduvvu commented 5 years ago

@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: Ionic@4.1.2 cordova-ios@4.5.5

@andyepx

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

ganiru commented 5 years ago

@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: Ionic@4.1.2 cordova-ios@4.5.5

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.

OBout commented 5 years ago

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

ganiru commented 5 years ago

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.