# Cordova 4.0 compatibility

**URL:** <https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341>\
**Category:** ionic-v1\
**Created:** [October 17, 2014, 6:14pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341 "2014-10-17T18:14:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nokturnal](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nokturnal](https://forum.ionicframework.com/u/nokturnal)\
**Post date:** [October 17, 2014, 6:14pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/1 "2014-10-17T18:14:29Z")

</div>

I know it’s super early, but is Ionic compatible with Cordova 4.0?

---

<div class="post-metadata">

**Author:** ![jorre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jorre/32/64847_2.png) [@jorre](https://forum.ionicframework.com/u/jorre)\
**Post date:** [October 30, 2014, 9:53am UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/2 "2014-10-30T09:53:10Z")

</div>

I’m wondering the same thing, as google dev console is giving me the following warning:

```
"This app is built on a version of Apache Cordova that contains security vulnerabilities. This includes a high severity cross-application scripting (XAS) vulnerability."

```

Not sure what version I should update cordova to.

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [October 30, 2014, 12:11pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/3 "2014-10-30T12:11:46Z")

</div>

I think @nokturnal is talking about the CLI? because the newest versions of the platforms is 3.6.3 and 3.6.4.

You can update your platforms to the newest one: `cordova platform update ios`  
You can also install a specific platform like this: `ionic platform add android@3.5.1`  
To see what versions of each platform you got you can do: `cordova platforms`

I use cordova CLI 4.0 and it seems to work fine. xCode 6.1 though… not so good…

---

<div class="post-metadata">

**Author:** ![jorre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jorre/32/64847_2.png) [@jorre](https://forum.ionicframework.com/u/jorre)\
**Post date:** [October 30, 2014, 12:18pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/4 "2014-10-30T12:18:56Z")

</div>

We’re talking about the CLI indeed. Is there a way to update an ios app to e.g. cordova 3.6.1. I’m getting the following errors if I just try to update:

```
cordova platform update 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"]

cordova platform list
Installed platforms: android 3.6.4, ios 3.4.1

```

I’d like to update to ios 3.6.3

I tried this with no luck:

```
cordova platform update ios@3.6.3
Platform "ios@3.6.3" is not installed. See `cordova platform list`.

```

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [October 30, 2014, 12:29pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/5 "2014-10-30T12:29:06Z")

</div>

What version of the CLI do you have (`cordova -v`)? you maybe have to upgrade it?  
ex:

```
sudo npm install -g cordova@3.7.0
```

---

<div class="post-metadata">

**Author:** ![jorre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jorre/32/64847_2.png) [@jorre](https://forum.ionicframework.com/u/jorre)\
**Post date:** [October 30, 2014, 12:29pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/6 "2014-10-30T12:29:29Z")

</div>

```
cordova -v
4.0.1-nightly.2014.9.29
```

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [October 30, 2014, 12:30pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/7 "2014-10-30T12:30:47Z")

</div>

oh! well then `cordova update ios` should work… Maybe you have to remove and then add ios platform again

---

<div class="post-metadata">

**Author:** ![jorre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jorre/32/64847_2.png) [@jorre](https://forum.ionicframework.com/u/jorre)\
**Post date:** [October 30, 2014, 12:42pm UTC](https://forum.ionicframework.com/t/cordova-4-0-compatibility/11341/8 "2014-10-30T12:42:52Z")

</div>

Thanks, I’ll try that.
