Native AOT symbol upload never runs for net10.0-macos apps
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp, macos
- 領域
- build-system
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- C#
- スター
- 775
- フォーク
- 262
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 118
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-dotnet のほかの issue
-
chore: remove stale IL3050/IL3053 workaround from the iOS sample対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンState: Needs Discussion
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-dotnet#6071 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"対応中かも @pcbeingused33 が今日担当しました。 オープンState: Needs Discussion
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-dotnet#6039 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
.NET Platform: Android Task
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
getsentry/sentry-dotnet#6020 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Move the Blazor WebAssembly sample off the deprecated DevServer対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン.NET Framework: Blazor
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
getsentry/sentry-dotnet#5906 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Docs MSBuild Needs Docs Update
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/sentry-dotnet#5691 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-dotnet の issue をすべて見る
似ている issue
-
[Bug]: Native build script prints a traceback when Git is missing from PATH対応中かも @Jaisuryan-web が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
KnifeLemon/Filee#1953 ·
メンテナーはふだん 1 日以内に返信
-
blazor dotnet easy first-contributor first-contributors good first issue help wanted up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
fork-commit-merge/fork-commit-merge#8691 ·
メンテナーはふだん 1 日以内に返信
-
bug effort:S P1
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
nightscout/nocturne#4821 ·
メンテナーはふだん 1 日以内に返信
-
Audit by ear: boss warnings, other not-enough messages, ailments and barriers in a chapter 1 battleオープンenhancement needs-game ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Sour-Dev-Home/metaphor-accessibility#1273 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
joinrpg/joinrpg-net#6336 ·
メンテナーはふだん 1 日以内に返信