Forum Xamarin.iOS

Build an IOS app from command line over the network

JaySinghJaySingh USMember ✭✭


I am looking for a command line example of an XBuild command, that can be run over the network.

To describe the scenario, say Mac A has the source, and Mac B, has Xamarin and related components.

Is it possible to run a command on Mac A, targeting Mac B to compile the solution, and get the IPA.

I know the Mac build host does something similar, however I don't know if is possible for a Mac to Mac scenario.


Best Answer


  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    No, that scenario is not supported. You might consider enabling sharing on the project directory on Mac A and connect to that from Mac B. Then you should be able to execute the build command remotely via ssh from Mac A.

  • JaySinghJaySingh USMember ✭✭

    thanks Dave, would you happen to have an example for the command

  • DaveHuntDaveHunt USMember ✭✭✭✭✭
    ssh [email protected] xbuild /p:Configuration=whatever ...

    See Building from the command-line for details on the actual xbuild command to use.

  • JaySinghJaySingh USMember ✭✭

    tried the above example, I can SSH into the machine, but I don't know how to specify the location of the source.

    to be clear, I am ssh'ing in to MAC A from MAC B, and MAC B has the source files, and MAC has is where I would like to compile it.

Sign In or Register to comment.