Phonegap using CLI to compile windows phone app - jquery-mobile

Pardon me for asking, or pointing this out, but the windows mobile docs for phonegap are awful.
As of Phonegap 3.0, heres what it still says on the windows platform guide:
Download and extract the latest copy of [PhoneGap. You will be working in the lib\windows-phone-8\wp8 subfolder, lib\windows-phone-8\wp7 contains the Windwos Phone 7 version of Cordova.
However, phonegap is no longer distributed as a zip. It is compiled for your specific OS/SDK in the command line. This doesn't make much sense to me.
phonegap create Test123 -> phonegap cd Test123 -> phonegap build ios will build your ios platform successfully. I've done this with no problems.
But I have no idea where they address how to do this for windows mobile.
Have I overlooked where they state this? Thanks

Related

How to build ionic 2 ios app on windows 10?

I am new to ionic 2 and i want to build my app to ios version. What requirements need to install on my windows 10 PC? Thanks. I hope you can help me. :)
The only way I can think of is by using Ionic Cloud Services:
Ionic Packages makes it easy to build a native binary of your app in
the cloud. Perfect for developers using Windows that want to build iOS
apps.
This lets you:
Send your packaged app to others
Build your app for platforms not supported by your computer (e.g. iOS builds on Windows)
Build .ipa and .apk files that you can submit to app stores
You can check the prerequisites here and the steps required to build, here.
EDIT:
You can also take a look at this amazing post from Josh Morony.
You can't build it to iOS in Windows. Neither in Linux.
You will need an Mac OS.
Either one running on a real Apple device (iMac, Macbook, Mac Mini), or in an virtual box or you can use a cloud service.

Still not possible to use Eclipse instead of XCode for building an iOS app?

I'm developing a Phonegap/Cordova app for Android and iOS. For Android I use Eclipse on Windows. On Mac OS X you seem to be forced to use XCode, but since there's Eclipse on OS X too, I would like to use only that.
I found out that this was not possible in the past, but maybe it is these days.
Eclipse is a better editor than XCode in my opinion.
So my question is, is it even possible to develop, build and run for iOS in Eclipse ? Or does everybody use XCode ?
You can't code, build and compile iOS app using eclipse. You need to use terminal/CMD to build your cordova project and XCode to compile and run into your simulator or actual device.
Since cordova 3 was launched, you can use any editor you want, sublime, brackets, eclipse or any other.
You create the project with the cordova CLI and you work with the files on the root www folder.
You can use the CLI to run the app and generate the .ipa and .apk files, so you don't need xcode at all.
So answering your question, yes, you can use eclipse to create the app, but you have to use the CLI to run and install the app, eclipse doesn't have cordova CLI integration
Other IDEs like netbeans have eclipse integration, and editors like brackets have a cordova plugin to run the CLI from there

Build cordova apps via ssh on a remote Mac

I've been building Android Phonegap apps locally on my Windows PC and using Phonegap Build to build IOS apps.
The design guys have a Mac that we're already using to publish the app in iTunes.
But even if Phonegap build is a great tool, there are many drawbacks : build time can sometimes be quite long, not all plugins are available, plugins submission seems sometimes quite long and not always successfull, building debugging a home-made plugin using Phonegap build seems just impossible.
For all those reasons I feel the need to build locally also IOS projects and maybe also develop native plugins.
So my idea would be to use ssh to connect to the Designer's Mac and use it to build.
Do other people process in that way? Would it work? Are there things I should be carefull with when installing the CLI, sdk and other tools?
For example I think it would be a good idea to install npm locally in my user I'll use for SSH.
Any ideas?
it is possible
First you need to instal phonegap on Designer's Mac, and enable ssh
Then in your system open terminal/cmd type
ssh usernameOfDesignerMac#ipaddress
then enter yes,
then enter password of that user. thats all now you can access Designer's mac,
cd cordovaProjectLocation
sudo cordova build ios/android

How to build ios application using Phonegap framework on windows OS.

I have allready build an android application using Phonegap framework, I need to develop the application for ios also using windows OS.I know that for ios we need XCode that runs only on mac machine,but is there any way to do it on windows ( as I can't afford Mac machine) ?
I searched for various options,few of them are:
1.Install mac os using VM ware.
2.Use MacinCloud Service.
I don't know what are the advantages and disadvantages of each of them, please suggest what to do?
Use PhoneGap Build. Just upload the html/js/css/config with specified plugin as zip and build it online. Unfortunatelly you will not be able to use custom plugins, only specified on the PhoneGap Build site.

Phonegap - I have the basic hello world android app. How do I deploy it to ios?

I've installed phonegap, and got the basic hello world new project app open in eclipse. I have deployed it to a android emulator. I want to deploy the same app to my IOS emulator. I can't find any instructions anywhere of how to do this. Does anyone know how?
You have to do this in Xcode on Mac, or in a virtual machine with Mac OS installed.
Also, cordova.js is different for Android and iOS platforms - keep this in mind, as the codebase will differ in some ways for these platforms.
Here is the complete guide about building Phonegap apps for iOS:
http://docs.phonegap.com/en/edge/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide
If you have iOS Dev license you can build it through PhoneGap Build.
The advantage is that you don't have to have a Mac or even a virtual machine with Mac installed, so that you can do everything through a web interface, what's fantastic!
The only exception is if you have something native in Xcode to deploy along with your application, otherwise if it's only HTML/Javascript and so on, then it's perfect for you.
http://build.phonegap.com
Hope it helps!

Resources