Error adding ios platform cordova

I am updating my version from Cordova from 3.6.0 to 4.0.0 which is the latest as of today. This allows me to add the Android platform, but by adding the iOS platform, it gives the 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 installed on my system. But I cannot figure out the problem.

+3


source to share


4 answers


I solved this problem by reinstalling Cordova with this command



$ sudo npm install -g cordova

      

+15


source


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



+3


source


It is right.

Cordova 4.0 is for the cordova cli version, it is not the same project as Cordova. The Cordova cli uses the latest available version of each platform (3.6.4 for Android).

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

+2


source


I had a problem with this question other than my error message:

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 trying a couple, it worked. The command cordova platform add ios

will not terminate if I am not connected to the Internet, so I suspect that the external web service it relies on has had a short downtime.

0


source







All Articles