Skip to content

Commit ffd186a

Browse files
Remove ios simulator resources when building in Hot Restart mode (#2384)
* Remove simulator resources when building for Hot Restart * Update CHANGELOG.md
1 parent f1a07b5 commit ffd186a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
However, there is no change to the behavior or _typical_ usage of either of these properties.
2828

2929
- CachedTransport gracefully handles malformed envelopes during processing ([#2371](https://github.com/getsentry/sentry-dotnet/pull/2371))
30+
- Remove extraneous iOS simulator resources when building MAUI apps using Visual Studio "Hot Restart" mode, to avoid hitting Windows max path ([#2384](https://github.com/getsentry/sentry-dotnet/pull/2384))
31+
3032

3133
### Dependencies
3234

src/Sentry.Bindings.Cocoa/buildTransitive/Sentry.Bindings.Cocoa.targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,14 @@
3939

4040
</Target>
4141

42+
<!--
43+
Remove simulator resources when building for Hot Restart.
44+
Effectively works around https://github.com/getsentry/sentry-dotnet/issues/2363
45+
-->
46+
<Target Name="_SentryRemoveSimulatorResourcesForHotRestartBuilds" AfterTargets="_CopyLocalBindingResources" Condition="'$(IsHotRestartBuild)' == 'true'">
47+
<ItemGroup>
48+
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="$([System.String]::new('%(Identity)').Contains('Sentry.xcframework\ios-arm64_x86_64-simulator'))" />
49+
</ItemGroup>
50+
</Target>
51+
4252
</Project>

0 commit comments

Comments
 (0)