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

Aperta Adatta ai principianti
#6,071 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Leggi samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj e controlla l’impostazione WarningsNotAsErrors; verifica se l’esempio tvOS l’ha copiata da #6065. Rimuovi le due righe che sopprimono gli avvisi, poi esegui dotnet publish samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj -c Release -r ios-arm64. Il lavoro è completato quando la pubblicazione riesce senza avvisi IL3050 o IL3053; se #6065 viene integrato per primo, rimuovi anche le righe copiate dall’esempio tvOS.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
775
Fork
262
Merge medio
1g 16h
PR unite (30g)
118

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-dotnet

Tutte le issue di getsentry/sentry-dotnet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.