Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile cordova project from visual studio (Hybrid App) to android / ios apk

I try to compile my Cordova Hybrid App from visual studio to apk file

  1. After I deploy the project to Android / iOS the project bin folder still empty.
  2. I try to upload the "www" folder to build.phonegap.com but I get error.
  3. What is the best and correct way to compile the project (HTML, CSS, and JS) to APK for Android and IOS?

Thanks, Tom

Update:

I try to build from the visual studio

this is my Project folder enter image description here

When I try to build project from the visual studio on "Device" mode I get this error

enter image description here

like image 487
user3489892 Avatar asked Jun 19 '14 11:06

user3489892


1 Answers

1- If you have used Ripple simulator as the target, nothing will be generated in the bin folder. You need to switch the build configuration to "device" in order for the binaries to be generated

2 - The www folder that is generated by the Visual Studio template has nothing special and you shouldn't have issues with PhoneGap Build. If you have errors they are coming from your JS code itself

3 - To build the binaries for Android using the Multi-Device Hybrid extension for Visual Studio, you should be good by simply switching the build configuration to "device" instead of Ripple simulator. For iOS you need to use the Remote Build and Simulation Agent for iOS (which require have a Mac as the iOS tools are NOT available for Windows and you cannot generate the iOS binary directly on your Windows machine. Otherwise, you can consider using PhoneGap Build service

like image 98
Olivier Bloch Avatar answered Oct 24 '22 13:10

Olivier Bloch