Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade a cordova app and plugins

Tags:

xcode

cordova

I have a Cordova (v5.2) app that I run on iOS (platform v3.9.1) and Android (platform v5.0). Is it best to upgrade Cordova from the command prompt, and then manually look for plugin updates, or should I look for plugin updates first then update Cordova? Also, I have recently upgraded from XCode 7.2 to XCode 8 and it is asking me to make changes to recommend project settings, this appears to break thinks. Should I allow XCode to make changes to the project, or should I upgrade Cordova first? I'm looking for a workflow and best way to manage these updates. Any advice is appreciated, thank you.

like image 573
Stradosphere Avatar asked Dec 15 '16 23:12

Stradosphere


1 Answers

I would upgrade your Cordova platform first. The main version that I pay attention to is the cordova platform version. So in your case [email protected] and [email protected]. These packages are what control the cordova lib that gets injected into your native project. They also determine which version of Xcode you can use.

The cordova-cli pins certain platform versions by default when you run cordova platform add <platform_name>. I usually stick with the most stable release of cordova-cli for my needs and then add specific platforms (usually the latest) manually. cordova platform add ios@lateset.

Any partiular reason you're [email protected], [email protected] , and [email protected]?

like image 94
johnborges Avatar answered Oct 08 '22 07:10

johnborges