user8862022
user8862022

Reputation:

Jenkins setup for xamarin froms app in mac build for ios

i am trying to setup jenkins job for xamarin.froms app and added msBuild plugin in jenkins configurations.

Create a job and trying to build the ios app, here is the build command i am using

msbuild /p:Configuration="Release" \ 
    /p:Platform="iPhone" \ 
    /p:IpaPackageDir="$HOME/Builds" \
    /t:Build Sample.sln

build are failing saying that

MSBUILD : error MSB1009: Project file does not exist.

what is the exact command to build ios app ?

Upvotes: 3

Views: 786

Answers (1)

Iain Smith
Iain Smith

Reputation: 9703

If you are using the MSBuild plugin you can do it like so:

  1. Add the build step:

enter image description here

  1. Add the following:

    1. Select the MSBuild version from the drop down, this is set in your Jenkins Configuration.
    2. The Path to your solution file from the root directory
    3. The command line parameters (I removed the line escapes). I changed $HOME to %WORKSPACE%

You should have something like this:

enter image description here

If you want to just run the bash command, you will have to move to the directory with where the solution file is then run:

msbuild /p:Configuration="Release" /p:Platform="iPhone" /p:IpaPackageDir="$HOME/Builds" /t:Build Solution.sln

Make sure you have set the environment variable $HOME if that is where you want it to go

If not change $HOME/Builds to another path.

Upvotes: 1

Related Questions