在远程Mac上通过ssh构建cordova应用程序 [英] Build cordova apps via ssh on a remote Mac

查看:129
本文介绍了在远程Mac上通过ssh构建cordova应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在我的Windows PC上本地构建Android Phonegap应用程序,并使用Phonegap Build来构建IOS应用程序。



设计人员有Mac我们是已经用来在iTunes中发布应用程序。



但即使Phonegap构建是一个很好的工具,也有许多缺点:构建时间有时可能很长,而不是所有插件可用,插件提交似乎有时很长,并不总是成功,使用Phonegap构建调试自制插件似乎是不可能的。



由于所有这些原因,我觉得需要在本地构建IOS项目,也可能开发本机插件。



所以我的想法是使用ssh连接到Designer的Mac并用它来构建。 / p>

其他人以这种方式处理吗?会有用吗?安装CLI,sdk和其他工具时我应该注意哪些事项?



例如我认为在我的用户本地安装npm是个好主意我将用于SSH。



任何想法?

解决方案

可能是
首先你需要在Designer的Mac上安装phonegap,然后启用ssh
然后在你的系统中打开终端/ cmd类型

  ssh usernameOfDesignerMac @ ipaddress 


stack.imgur.com/RWIe3.pngalt =在此处输入图像描述>
然后输入该用户的密码。这就是现在你可以访问Designer的mac,

  cd cordovaProjectLocation 
sudo cordova build ios / android


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

这篇关于在远程Mac上通过ssh构建cordova应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆