I'm not going to describe basics of cordova , mac and vs 2015 as I assume you already have better knowledge of these three environment.
1. Install xcode latest version on your mac.
2. Install apache cordova on your mac. You can find more details from apache cordova documentation.
https://cordova.apache.org/docs/en/latest/guide/platforms/osx/
3. Add platform ios for your project.
4. Add all requires plugin to your project.
5. Build your project for iOS.
This is a sample script I used for creating a cordova project on mac.
echo "CREATING CORDOVA PROJECT";
echo " ******** ";
echo "";
cd PATH;
cordova create ProjectName NameSpace ProjectTitile;
cd pericorp;
cordova platform add ios;
cordova build ios;
echo "INSTALLING REQUIRED PLUGINS";
echo " ******** ";
echo "";
cordova plugin add cordova-plugin-camera;
cordova plugin add cordova-plugin-compat;
cordova plugin add cordova-plugin-device;
cordova plugin add cordova-plugin-dialogs;
cordova plugin add cordova-plugin-file;
cordova plugin add cordova-plugin-file-transfer;
cordova plugin add cordova-plugin-geolocation;
cordova plugin add cordova-plugin-network- information;
cordova plugin add cordova-plugin-whitelist;
cordova plugin add cordova-sqlite-legacy;
echo "INSTALLED PLUGINS";
echo " ******** ";
echo "";
cordova plugin ls;
echo "Cordova Project Created!";
echo " ******** ";
echo "";
6. Now this will create an xcode project in /Platforms/ios/ folder.
7. Now you can build and deploy this as a normal xcode project.
8. All you have to do is replace content of your www folder and build the project for iOS.
Notes
* Close xcode before building the project from the terminal.
* Never touch the www inside the platform folder it will be creating automatically when you building the cordova project.
If you have any questions please comment bellow. I'm happy to help if I can.
No comments:
Post a Comment