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.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
You can follow the steps below:
npm install -g cordova
commandcordova create PROJECT_NAME command
in desired location using terminalWWW
folder andconfig.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.
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 yourconfig.xml
: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.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