PropertyGroup
for the configuration that will be used to build the app:IpaPackageDir
has been added to make it easy to customize the .ipa file output location. If IpaPackageDir
is set to a custom location, the .ipa file will be placed in that location instead of the default timestamped subdirectory. This can be useful when creating automated builds that rely on a specific directory path to work correctly, such as those used for Continuous Integration (CI) builds.IpaPackageDir
property to $(OutputPath)
using one of the following approaches. Both approaches are compatible with all Unified API Xamarin.iOS builds, including IDE builds as well as command-line builds that use msbuild, xbuild, or mdtool:IpaPackageDir
property within a <PropertyGroup>
element in an MSBuild file. For example, you could add the following <PropertyGroup>
to the bottom of the iOS app project .csproj file (just before the closing </Project>
tag):<IpaPackageDir>
element to the bottom of the existing <PropertyGroup>
that corresponds to the configuration used to build the .ipa file. This is better because it will prepare the project for future compatibility with a planned setting on the iOS IPA Options project properties page. If you currently use the Release|iPhone
configuration to build the .ipa file, the complete updated property group might look similar to the following:/p:
argument to set the IpaPackageDir
property. In this case note that msbuild does not expand $()
expressions passed in on the command line, so it is not possible to use the $(OutputPath)
syntax. You must instead provide a full path name. Mono's xbuild command does expand $()
expressions, but it is still preferable to use a full path name because xbuild has been deprecated in favor of the cross-platform version of msbuild.