Native AOT symbol upload never runs for net10.0-macos apps
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- csharp, macos
- Área
- build-system
Línea de trabajo
The upload hook lives in src/Sentry/buildTransitive/Sentry.targets: the upload runs AfterTargets _CopyAotSymbols (around line 183 and 216), which doesn't exist for net10.0-macos, while net11 hooks Publish (around line 191). Start by building with -bl and checking the binlog for the 'does not exist ... will be ignored' warning. Done means a net10.0-macos Native AOT publish logs 'Preparing upload to Sentry' and uploads symbols; the dSYM location still needs confirming.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
A net10.0-macos app with PublishAot=true uploads no debug files during dotnet publish, even with SentryUploadSymbols=true. There's no "Preparing upload to Sentry" message and no warning. I found this while testing #6002.
This is about plain macOS apps (net10.0-macos). Mac Catalyst isn't affected, so neither are MAUI apps. On net11.0-macos, the same app uploads its dSYM from publish/.
What happens
For Native AOT on net8 to net10, Sentry.targets runs the upload after the _CopyAotSymbols target (7.0.1, line 183). That target comes from the Native AOT compiler package, and a macOS app build doesn't have it, so the upload never runs. The binlog has this message:
The target "_CopyAotSymbols" listed in an AfterTargets attribute at ".../buildTransitive/Sentry.targets (216,42)" does not exist in the project, and will be ignored.
On net11 the upload runs after Publish instead (line 191), and that works.
Today this happens when the app is built with -f net10.0-macos. Without -f, a single-target app takes the managed upload path and uploads only managed PDBs, which can't symbolicate Native AOT stack traces. Once #6002 merges, single-target apps upload nothing without -f too.
How to reproduce
- Run
dotnet new macos -n macapp, set<TargetFramework>net10.0-macos</TargetFramework>and<PublishAot>true</PublishAot>, and add aSentrypackage reference. - Run
dotnet publish -c Release -f net10.0-macos -p:SentryUploadSymbols=true -p:SentryOrg=my-org -p:SentryProject=my-project -p:SentryAuthToken=$SENTRY_AUTH_TOKEN -bl. - The output has no "Preparing upload to Sentry" line, and the binlog has the message above.
I ran this with the .NET 11.0.100 SDK and the macos workload 27.2.11039 (Microsoft.macOS.Sdk.net10.0_26.0 26.0.11017), with sentry-cli 3.8.2 uploading to a fake Sentry server, using packages built from main and from #6002.
Open questions
- Does a net10 macOS Native AOT publish produce a dSYM, and where? The net10 macOS pack asks for Xcode 26.0. I only had Xcode 27.2, so I built with
ValidateXcodeVersion=falseand without the template's asset catalog, and found no dSYM inbin/orobj/. - Does a build for one runtime identifier behave differently from the template's default, which builds for both
osx-x64andosx-arm64? - net11 already works. Is net10 worth fixing on its own, given it's supported until November 2028?
- Lenguaje dominante
- C#
- Estrellas
- 775
- Forks
- 262
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 118
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS samplePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoState: Needs Discussion
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
getsentry/sentry-dotnet#6071 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Posiblemente ocupada @pcbeingused33 la tomó hoy. AbiertoState: Needs Discussion
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
getsentry/sentry-dotnet#6039 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
.NET Platform: Android Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-dotnet#6020 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Move the Blazor WebAssembly sample off the deprecated DevServerPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto.NET Framework: Blazor
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
getsentry/sentry-dotnet#5906 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Docs MSBuild Needs Docs Update
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-dotnet#5691 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-dotnet
Issues similares
-
In-car displays show 0 km/h and P while the AV drivesPosiblemente ocupada @bazilinskyy la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
bazilinskyy/coupled-sim#366 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
BaryoDev/umbraco-pwa#196 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
microsoft/fluentui-blazor#5688 ·
Los mantenedores suelen responder en 1 día
-
bug flaky lsp-transport small
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día