Error installing OneSignal plugin on iOS platform using IONIC FRAMEWORK

2

I'm developing an app using the ionic framework, but when I add the OneSignal plugin on the iOS platform I'm having some errors:

  

"Failed to install 'onesignal-cordova-plugin': undefined (node: 3302)   UnhandledPromiseRejectionWarning: Unhandled promise rejection   (rejection id: 1): Version should contain only numbers and dots "

I have already done some commands like:

sudo gem install cocoapods
prod repo update

But I did not succeed.

Would anyone have any tips on what to do to install OneSignal?

    
asked by anonymous 18.09.2018 / 16:33

1 answer

2

Test these procedures

cordova platform remove ios
cordova platform remove onesignal-cordova-plugin
sudo gem install cocoapods
pod repo update
pod setup (caso precise sincronizar o repositório CocoaPods)
cordova plugin add onesignal-cordova-plugin --save
cordova platform add ios
    
04.10.2018 / 15:14