Tuesday, November 15, 2016

Visual Studio 2015 Cordova Remotebuild failed Error: 65

After thing for moths I came up with a radical solution for this problem. When you are trying to build and deploy your cordova app on apple devices you are communicating through lot of third party tools and interfaces. All I did was I reduce number of layers that I'm communicating to deploy on a apple device.

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