Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 672
QuickFix Avatar asked Mar 28 '14 11:03

QuickFix


1 Answers

it is possible First you need to instal phonegap on Designer's Mac, and enable ssh enter image description here Then in your system open terminal/cmd type

ssh usernameOfDesignerMac@ipaddress

then enter yes,

enter image description here then enter password of that user. thats all now you can access Designer's mac, enter image description hereenter image description here

cd cordovaProjectLocation
sudo cordova build ios/android

enter image description hereenter image description hereenter image description here

like image 128
Arjun T Raj Avatar answered Oct 19 '22 18:10

Arjun T Raj