Add platform ios failed for cordova-ios@3.9.2


#1

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


Impossible to add android platform to an ionic project
#2

I have the same problem with you, you solved?


#3

+1 Also having this issue since this morning.


#4

Am also facing same error since morning :frowning:

Please help me out. Thanks.


#5

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


#6

Seems to be fixed now.


#7

yup fixed seconded
working for me now


#8

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


#9

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.


#10

try this

 rm -rf ~/.cordova

#11

It seems to work!
Thank you very much!


#12

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


#13

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


#14

Thanks Chris, really appreciate it!


#15

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


#16

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


#17

C:\Users\Muhammet Tayyip\Desktop\denemeProje>rm -rf ~/.cordova
’rm’ is not recognized as an internal or external command,
operable program or batch file.


#18

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


#19

Worked for me. Super :slight_smile: