I am trying to add an iOS platform to a new Cordova 7.0.1 project but keep getting the error listed in the title of this post. I have tried removing the platform and adding it as suggested in this thread here, but I still get the error. I recently upgraded Cordova from 6.5.0 to 7.0.1 and since then this error has come up. Does anyone have any suggestions for fixing this?
Asked
Active
Viewed 5,048 times
3 Answers
3
Update your Node.js to the latest version.

J R
- 50
- 4
-
This was the problem. My node was on version 0.12.x Upgrading to 6.11.x fixed this issue. – Kal Jun 09 '17 at 13:06
-
Make also sure that Cordova is installed globally – Alessandro Lallo Nov 02 '18 at 11:35
1
Please remove and then add the iOS platform within project:
cordova platform rm ios
cordova platform add ios
Hope this might be help you. It worked for me.

Ved Rauniyar
- 1,539
- 14
- 21