How can I copy IPA output files to the TFS drop folder?


Open the .csproj file for the iOS app project in a text editor and then add the following lines at the end (immediately before the closing </Project> tag):

<PropertyGroup>
	<CreateIpaDependsOn>
		$(CreateIpaDependsOn);
		CopyIpa
	</CreateIpaDependsOn>
</PropertyGroup>

<Target Name="CopyIpa"
	Condition="'$(OutputType)' == 'Exe'
		And '$(ComputedPlatform)' == 'iPhone'
		And '$(BuildIpa)' == 'true'
		And '$(TF_BUILD)' == 'true'">
	<Copy
		SourceFiles="$(OutputPath)$(IpaPackageName)"
		DestinationFolder="$(TF_BUILD_BINARIESDIRECTORY)"
	/>
</Target>

Notes

Additional references

Contact information

This document discusses the current behavior as of Xamarin 3.11.666 for Visual Studio and Xamarin.iOS 8.10.3 on the Mac build host. The technique described in this document is not part of the stable testing suite for Xamarin, so it could break in the future.

If you notice that the technique no longer works on a more recent version, or if you notice any other mistakes in the document, please let us know by writing to contact@xamarin.com or to one of your support email addresses listed on https://store.xamarin.com/account/. Thanks!

Last Updated: Oct 21, 2016 06:25PM EDT