Reputation:
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
Reputation: 9703
If you are using the MSBuild plugin you can do it like so:
Add the following:
$HOME
to %WORKSPACE%
You should have something like this:
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