Skip to content

Commit 3cc63bf

Browse files
authored
fix: Upload path for Xbox debug symbols (#2363)
1 parent b2be7e5 commit 3cc63bf

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- `sentry-native` is now built on Ubuntu 22.04 instead of Ubuntu 20.04, which reached EOL in May 2025. If you are running you game on a server on Ubuntu 20.04, you should update the OS before upgrading to this SDK version. ([#2355](https://github.com/getsentry/sentry-unity/pull/2355))
88

9+
### Fixes
10+
11+
- When targeting Xbox, the SDK now correctly picks up the debug symbols for sentry-native from the `Assets/Plugins/Sentry` directory ([#2363](https://github.com/getsentry/sentry-unity/pull/2363))
12+
913
### Dependencies
1014

1115
- Bump CLI from v2.56.0 to v2.56.1 ([#2356](https://github.com/getsentry/sentry-unity/pull/2356))

src/Sentry.Unity.Editor/Native/BuildPostProcess.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,20 @@ private static void UploadDebugSymbols(IDiagnosticLogger logger, BuildTarget tar
144144
{
145145
case BuildTarget.StandaloneWindows:
146146
case BuildTarget.StandaloneWindows64:
147-
case BuildTarget.GameCoreXboxSeries:
148-
case BuildTarget.GameCoreXboxOne:
149147
var windowsSentryPdb = Path.GetFullPath($"Packages/{SentryPackageInfo.GetName()}/Plugins/Windows/Sentry/sentry.pdb");
150148
if (File.Exists(windowsSentryPdb))
151149
{
152150
paths += $" \"{windowsSentryPdb}\"";
153151
}
154152
break;
153+
case BuildTarget.GameCoreXboxSeries:
154+
case BuildTarget.GameCoreXboxOne:
155+
var xboxSentryPluginPath = Path.GetFullPath("Assets/Plugins/Sentry/");
156+
if (Directory.Exists(xboxSentryPluginPath))
157+
{
158+
paths += $" \"{xboxSentryPluginPath}\"";
159+
}
160+
break;
155161
case BuildTarget.StandaloneLinux64:
156162
var linuxSentryDbg = Path.GetFullPath($"Packages/{SentryPackageInfo.GetName()}/Plugins/Linux/Sentry/libsentry.dbg.so");
157163
if (File.Exists(linuxSentryDbg))

0 commit comments

Comments
 (0)