Why is cordova at version 3.9.2 for Ionic 1.1.1 even with cordova 5.4.0 installed


I am confused here…

If i do a cordova -v i get 5.4.0 - but when I add the ios platform using ionic platform add ios i get cordova 3.9.2

And if i open the ios project in XCode under newest El Capitain i get some 20 warnings about 3.9.2 is not supported in a near future…

What am i doing wrong??

Because cordova is made of cordova-ios and cordova-android, each component has its own version.

Latest version for cordova-ios is 3.9.1 according to their release notes.

Latest version for cordova-android is 5.0.0 according to their release notes