Visual Studio Cordova iOS build server setup

妖精的绣舞 提交于 2019-11-28 18:02:43

Here are the steps:

Prerequisites

  • 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

Installation

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> 

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.

Setting up the Remote Agent to Support Starting the iOS Simulator

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.

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

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

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

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!