ionic cordova build ios --release --prod
cordova platform add --save ios
Running command - failed!
[ERROR] An error occurred while running cordova platform add --save ios (exit code 1):
Using cordova-fetch for cordova-ios@^4.4.0
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.myproject.example
Name: example
iOS project created with cordova-ios@4.4.0
Installing "cordova-clipboard" for ios
Installing "cordova-plugin-x-socialsharing" for ios
Installing "es6-promise-plugin" for ios
Error: variables.forEach is not a function
i have no idea why this occurs, can anyone help