Skip to content

Instantly share code, notes, and snippets.

@chamons
Last active December 21, 2017 14:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chamons/84baa6983aa6b9f8cec5bf81b023aa00 to your computer and use it in GitHub Desktop.
Save chamons/84baa6983aa6b9f8cec5bf81b023aa00 to your computer and use it in GitHub Desktop.
<!-- All msbuild target logic needs to be inside a project tag -->
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- These targets will fire after mmp creates your bundle but before code signing -->
<PropertyGroup>
<CreateAppBundleDependsOn>$(CreateAppBundleDependsOn);DeleteDysymFiles</CreateAppBundleDependsOn>
</PropertyGroup>
<Target Name="DeleteDysymFiles">
<PropertyGroup>
<MonoBundleFullPath>$([System.IO.Path]::GetFullPath(`$(AppBundleDir)/Contents/MonoBundle/`))</MonoBundleFullPath>
</PropertyGroup>
<ItemGroup>
<FoldersInsideMonoBundle Include="$([System.IO.Directory]::GetDirectories(`$(MonoBundleFullPath)`))" />
<DebugSymbolFolders Include="@(FoldersInsideMonoBundle)" Condition="%(Extension) == '.dSYM'" />
</ItemGroup>
<RemoveDir Directories="@(DebugSymbolFolders)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment