Add platform ios failed for cordova-ios@3.9.2

Hello,
I have an issue with command

ionic platform add ios

it returns this error:

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.
Error: version not found: cordova-ios@3.9.2

My “ionic info”

Cordova CLI: 5.3.3
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.7
Ionic App Lib Version: 0.6.3
ios-deploy version: 1.8.2 
ios-sim version: 5.0.3 
OS: Mac OS X El Capitan
Node Version: v4.2.1
Xcode version: Xcode 7.0.1 Build version 7A1001  

Can somebody help me, please?

I removed and added ios platform without problems, some day ago.

Thank you very much,
Aurelio

3 Likes

I have the same problem with you, you solved?

1 Like

+1 Also having this issue since this morning.

1 Like

Am also facing same error since morning :frowning:

Please help me out. Thanks.

same error here too

Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.7
Ionic App Lib Version: 0.6.3
ios-deploy version: 1.8.2
ios-sim version: 5.0.3
OS: Mac OS X El Capitan
Node Version: v4.1.1
Xcode version: Xcode 7.1 Build version 7B91b

Seems to be fixed now.

yup fixed seconded
working for me now

oh why can’t i !!! what you do

I had the same issue and it was also not magically fixed.
Reading this stackoverflow post did the trick:

It seems cordova keeps a cached version in your ${HOME}/.cordova folder.
When I deleted this folder, the adding of the platform 3.9.2 worked.

1 Like

try this

 rm -rf ~/.cordova
17 Likes

It seems to work!
Thank you very much!

Works for me, thanks very much, spent most of yesterday pulling what’s left of my hair out!!!

Thank you very much, it worked like a charm! :smile:

Thanks Chris, really appreciate it!

Thank you so much, works like a charm! Grande Papa!

WORKED!!!

was having this error:
zenis@zenis-Inspiron-3542:~/ionic/cellApp_craft_demo$ ionic platform add android
Error during untar for /home/zenis/.cordova/lib/npm_cache/cordova-android/6.0.0/package.tgz: Error: EPERM: operation not permitted, utime ‘/home/zenis/.cordova/lib/npm_cache/cordova-android/6.0.0/package/package.json’

Error: Failed to fetch platform android
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: EPERM: operation not permitted, utime ‘/home/zenis/.cordova/lib/npm_cache/cordova-android/6.0.0/package/package.json’

NOW #SOLVED after: rm -rf ~/.cordova

You are on Windows, rm doesn’t exist here.
The path you are looking for would be C:\Users\##Username##\.cordova

1 Like

Worked for me. Super :slight_smile: