chore: remove stale IL3050/IL3053 workaround from the iOS sample

Open Beginner friendly
#6,071 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp

Research direction

Read samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj and inspect the WarningsNotAsErrors setting; check whether the tvOS sample copied it from #6065. Remove the two warning suppression lines, then run dotnet publish samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj -c Release -r ios-arm64. Done means the publish succeeds without IL3050 or IL3053 warnings; if #6065 merges first, remove the copied lines from the tvOS sample too.

Written by the indexing model from the issue text.

Description

State: Needs Discussion

samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj still carries a workaround for a .NET 9 runtime bug that has since been fixed:

<!-- TODO: Remove once this issue has been addressed: https://github.com/dotnet/runtime/pull/109186 -->
<WarningsNotAsErrors>IL3050;IL3053</WarningsNotAsErrors>

It was added for #3808, where PublishAot failed on EnumConverterFactory warnings from System.Text.Json (dotnet/runtime#109177). The linked fix, dotnet/runtime#109186, merged on 2025-01-13 and shipped in 9.0.2. The sample now targets net11.0-ios, so it should have the fix.

Remove both lines, then publish the sample with NativeAOT for a device and check that no IL3050/IL3053 warnings appear:

dotnet publish samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj -c Release -r ios-arm64

The tvOS sample added in #6065 copies the same two lines. Remove them there too if that PR merges first.

Dominant language
C#
Stars
775
Forks
262
Avg merge
1d 16h
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-dotnet

All issues in getsentry/sentry-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.