Skip to content

Instantly share code, notes, and snippets.

@dansiegel
Created February 17, 2022 20:03
Show Gist options
  • Save dansiegel/c6dd1abbf68a138784f9cedaeb2ae8bc to your computer and use it in GitHub Desktop.
Save dansiegel/c6dd1abbf68a138784f9cedaeb2ae8bc to your computer and use it in GitHub Desktop.
Xamarin iOS SDK 15.6.0.3 break
<Project>
<!--
iOS SDK Compatibility
iOS SDK 15.6.0.3 introduces a breaking change to the output of _DetectAppManifest
The output has been renamed to reflect a change from a "private" to "public" MSBuild parameter
-->
<Target Name="FixSwiftTarget"
AfterTargets="_DetectAppManifest"
BeforeTargets="_SwiftFrameworksMac">
<PropertyGroup Condition="$(_AppManifest) == '' AND $(AppBundleManifest) != ''">
<_AppManifest>$(AppBundleManifest)</_AppManifest>
</PropertyGroup>
<PropertyGroup Condition="$(MtouchSdkVersion) == ''">
<_SdkVersion Condition="'$(_SdkVersion)' == ''">0.0</_SdkVersion>
<MtouchSdkVersion>$(_SdkVersion)</MtouchSdkVersion>
</PropertyGroup>
</Target>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="iOSSDK.Compat.targets" />
<!-- The rest of the file left out for brevity -->
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment