I\'m trying to build a cordova ios app but not having much luck and getting strange errors.
Using this version of Cordova with older version of cordova-i
I always fix this error removing the platform and adding it again (android in my case)
phonegap platform rm android
wait until it finishes...
phonegap platform add android
And that´s it. Let me know if it is fixed for you.
This problem can also occur when you have both the Android and iOS installed. At least this was the case for me.
When I ran the command:
cordova platform rm android
It started to work
I was having exactly this problem but managed to solve it by simply removing and then adding the IOS platform within my project:
cordova platform rm ios
cordova platform add ios
This seemed to fix whatever had somehow got broken when updating Cordova...
Has same issue with latest version of cordova (7.0.1)
Faced error while adding iOS platform and managed to resolve it by upgrading nodeJS to latest version (6.11.1)
For those of you that have tried updating your NodeJs and that didn't work.
Go check in your platforms/android or platforms/ios folder. Mine was empty. Delete the folder, and run ionic cordova add android/ios
again.
Downgraded to cordova 8 and it's working.