Error while installing Cordova FCM dependecy plugin in IOS

Hi All,

Please help me to resolve issue of installing “cordova-plugin-fcm-with-dependecy-updated” on IOS.

My Ionic info is as below-


   ionic (Ionic CLI)             : 4.11.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 5.3.2
   @angular-devkit/build-angular : 0.1000.8
   @angular-devkit/schematics    : 10.0.8
   @angular/cli                  : 10.0.8
   @ionic/angular-toolkit        : 2.3.3


   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : ios 5.1.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 5 other plugins)


   ios-deploy : 1.9.4
   ios-sim    : 8.0.2
   NodeJS     : v10.16.3 (/usr/local/bin/node)
   npm        : 6.9.0
   OS         : macOS Catalina
   Xcode      : Xcode 11.3 Build version 11C29

i am trying to install cordova-plugin-fcm-with-dependecy-updated but it’s giving me below error message, not sure what’s the issue.

Installing "cordova-plugin-fcm-with-dependecy-updated" for ios
Failed to install 'cordova-plugin-fcm-with-dependecy-updated': undefined
CordovaError: Promise rejected with non-error: '/bin/sh: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory\n'
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.
        cordova plugin add cordova-plugin-fcm-with-dependecy-updated --save 
        exited with exit code 1.
        Re-running this command with the --verbose flag may provide more 

Please guide me to resolve this problem facing from few days now. Android on windows is working fine.

Thanks in advance.


Can anyone help me with this please?

I can’t help you with this Issue, but i would recommend to use the FirebaseX Plugin for all FCM related Stuff, as it’ is the best maintained and works perfect for me!

I need to install manually to sort it out. Once that is done, some other errors came however that i figured out and resolved these errors to make it work fine.