Ionic - Add/Remove phonegap-push-plugin - CocoaPods was not found

前端 未结 3 1271
感动是毒
感动是毒 2021-02-01 03:05

I\'m writing an Ionic app but I\'m getting so many issues. One issue in particular is that when I try to add the phonegap-push-plugin using the command

sudo ioni         


        
3条回答
  •  情书的邮戳
    2021-02-01 03:30

    The accepted solution to this didn't work for me, I had to install an older version of cocoapods:

    sudo gem uninstall cocoapods If using brew, run this too: brew uninstall cocoapods

    sudo gem install cocoapods -v 1.7.5 pod setup

    Then reinstall the plugin with ionic cordova plugin add phonegap-plugin-push --variable SENDER_ID="XXXXXXX"

    (As per part of https://github.com/flutter/flutter/issues/41253)

提交回复
热议问题