Skip to content

Instantly share code, notes, and snippets.

@chamons
Last active Dec 21, 2017
Embed
What would you like to do?
<!-- 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