Visual Studio Cordova iOS构建服务器设置 [英] Visual Studio Cordova iOS build server setup

查看:226
本文介绍了Visual Studio Cordova iOS构建服务器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找到有关如何在我的macbook上从visual studio(桌面)编译cordova应用程序时遇到问题,没有相似之处。我搜索了那些东西,但我发现没有任何相关性,或者与parallels / vmware的东西相关。

I have a problem with finding stuff about how to compile cordova apps from visual studio (desktop) on my macbook without parallels and similar things. I googled that stuff, but I found nothing relevant, or with parallels/vmware stuff.

我在评论中添加了一些洞察力,但在此粘贴了:

I added some insight what I want to do in my comments, yet pasted it here:

nope,我的意思是,我有两个设备:桌面,我有Windows 8.1和2012年中期的macbook pro。我想(开始)构建我桌面上的cordova应用程序,但在我的macbook上运行(通过iOS模拟器)。我不希望没有双启动,没有虚拟化,只需从visual studio开始构建并在osx上完成构建

nope, I mean, I have two devices: the desktop, where I have Windows 8.1 and a macbook pro mid 2012. And I want to (start a) build the cordova app from my desktop, but run it on my macbook (via iOS simulator). I don't want no dual booting, no virtualisation, just start the build from visual studio and finish the build on osx

推荐答案

以下是步骤:


  • Mac OS X Mavericks

  • Xcode 5.1和Xcode命令行工具

  • Apple的活动iOS开发者计划帐户,其中配置了iOS配置文件和签名身份Xcode

  • 安装在Mac上的Node.js

  • Mac OS X Mavericks
  • Xcode 5.1 and Xcode command line tools
  • An active iOS Developer Program account with Apple, with iOS provisioning profile and signing identity configured in Xcode
  • Node.js installed on the Mac

从Mac上的终端应用程序运行以下命令:

Run the following command from the Terminal app on your Mac:

sudo npm install -g vs-mda-remote

sudo npm install -g ios-sim



设置构建远程代理



要启动代理,请运行以下命令:

Setting Up the Remote Agent for Building

To start up the agent, run the following command:

vs-mda-remote --buildDir <server-build-directory> 

这将以构建服务器模式启动代理。启动代理以供iOS模拟器个人使用需要额外的命令行参数,稍后将介绍。

This will start the agent in build server mode. An additional command line parameter is required to start up the agent for personal use with the iOS Simulator that will be covered later.

如果您在个人Mac上使用远程代理(与共享的Mac构建服务器相比),您可以配置代理以支持在Mac上启动iOS模拟器来自Visual Studio。

If you are using the remote agent on a personal Mac (vs a shared Mac build server), you can configure the agent to support launching the iOS Simulator on your Mac from Visual Studio.

如前所述,全局需要ios-sim节点模块才能从Visual Studio启动iOS模拟器。

As mentioned previously, the ios-sim node module is required globally to enable starting up the iOS Simulator from Visual Studio.

然后应该使用命令行选项--allowsEmulate = true启动构建服务器:

The build server should then be started with the command line option --allowsEmulate=true:

vs-mda-remote --buildDir <server-build-directory> --allowsEmulate=true

满足这些要求后,可以将应用程序从Visual Studio部署到运行代理的Mac上的模拟器。

When these requirements are met, the app can be deployed from Visual Studio to the simulator on the Mac running the agent.

有关详细信息,请文档包含一个名为适用于iOS的远程构建和模拟代理的部分。

For more details, the documentation contains a section called "Remote Build & Simulation Agent for iOS".

这篇关于Visual Studio Cordova iOS构建服务器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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