Error while adding cordova platform ios

非 Y 不嫁゛ 提交于 2020-02-02 08:01:05

问题


I update my Cordova version 3.6.0 to 4.0.0, Which is latest one on today's date. It allow to add me android platform but while going to add iOS platform it gives following error.

Unable to fetch platform ios: Error: No compatible version found: cordova-ios@'>=8458588.0.0-0 <8458589.0.0-0'
Valid install targets:
["3.5.0","3.6.0","3.6.1","3.6.3"]

I have Xcode6 install on my system. But I can't figure out the problem.


回答1:


I solved this problem by reinstalling Cordova using this command

$ sudo npm install -g cordova



回答2:


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




回答3:


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




回答4:


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.



来源:https://stackoverflow.com/questions/26646052/error-while-adding-cordova-platform-ios

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