Error while adding cordova platform ios

冷暖自知 提交于 2019-12-06 01:36:21
RahulSalvikar

I solved this problem by reinstalling Cordova using this command

$ sudo npm install -g cordova

Try this below command in your terminal project path rm -rf ~/.cordova

It's correct.

Cordova 4.0 is for cordova cli version, that is not the same project as Cordova . Cordova cli uses last available version con each platform (3.6.4 for Android) .

http://cordova.apache.org/announcements/2014/10/16/cordova-4.html

I had close to this issue, except my error message was:

Failed to fetch platform ios
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.

After a couple tries, it worked. The command cordova platform add ios does fail to complete if I'm not connected to the internet, so I do suspect that the external web service that it relies on had a brief downtime.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!