Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
626 views
in Technique[技术] by (71.8m points)

installation - Visual Studio Cordova iOS build server setup

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, 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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".


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...