Reputation: 57
How can I transfer a Cordova iOS app from one PC to other? The app is made in some other version of Cordova and I want to upgrade its Cordova version.
Upvotes: 2
Views: 1036
Reputation: 2533
With the newer versions of Cordova this process has been made much easier. The config.xml
can now hold entries which specify the plugins and platforms your app will run. Look at this example. You can add these entries to your config.xml
:
<engine name="android" spec="~5.1.1" />
<engine name="ios" spec="~4.1.0" />
<engine name="browser" spec="~4.0.0" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<plugin name="cordova-plugin-console" spec="~1.1.7" />
<plugin name="cordova-plugin-dialogs" spec="~1.2.0" />
When you run cordova platform prepare ios
, if not already created, Cordova will fetch the missing platforms and plugins for you. This a good way to start building your app if not already started.
Upvotes: 0
Reputation: 11935
You can follow the steps below:
npm install -g cordova
commandcordova create PROJECT_NAME command
in desired location using terminalWWW
folder and config.xml
file from Old project in Old PC and replace
the same in newly created project folder.cordova plugin add PLUGIN_NAME
commandcordova platform add ios
commandcordova build ios
commandYou are good to go now. But you gotta test your project once thoroughly as some plugin may not works as expected with latest cordova version.
Upvotes: 2
Reputation: 1588
you can copy project folder one to another. if you have different version you can upgrade. if you have upgraded cordova. type in terminal project's folder cordova platform update ios and cordova platform update android if you dont before this : sudo npm update -g cordova
Upvotes: -1