Repository navigation
Closed
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't workingFramework: MAUIPlatform: iOS
Description
Package
Sentry.Maui
.NET Flavor
.NET
.NET Version
9.0.200
OS
iOS
OS Version
18.4
Development Environment
Visual Studio Code (MacOS)
SDK Version
5.14.1
Self-Hosted Sentry Version
No response
Workload Versions
maui-ios 9.0.0/9.0.100 SDK 9.0.200
UseSentry or SentrySdk.Init call
.UseSentry(options =>
{
// The DSN is the only required setting.
options.Dsn = Constants.SentryConstants.DNS;
// Set TracesSampleRate to 1.0 to capture 100% of transactions for tracing.
// We recommend adjusting this value in production.
options.TracesSampleRate = 1.0;
})
Steps to Reproduce
- Create new .net maui application and sentry maui project
- into .csproj paste the follow property group e compile it from sentry project
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<Optimize>true</Optimize>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>partial</TrimMode>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<!-- Configure Sentry org and project -->
<SentryOrg>example-org</SentryOrg>
<SentryProject>example-project</SentryProject>
<!-- Automatically creates a release when building your application. -->
<SentryCreateRelease>true</SentryCreateRelease>
<!-- Automatically associates commits with the release. -->
<SentrySetCommits>true</SentrySetCommits>
<!-- Optionally provide explicit flags to the set-commits command -->
<SentrySetCommitOptions>--local</SentrySetCommitOptions>
<!-- Sends symbols to Sentry, enabling symbolication of stack traces. -->
<SentryUploadSymbols>true</SentryUploadSymbols>
<!-- Sends sources to Sentry, enabling display of source context. -->
<SentryUploadSources>true</SentryUploadSources>
<!-- https://github.com/getsentry/sentry-dotnet/issues/4427 -->
<EnableAssemblyILStripping>false</EnableAssemblyILStripping>
<!-- If you are targeting Android, sends proguard mapping file to Sentry. -->
<SentryUploadAndroidProguardMapping>true</SentryUploadAndroidProguardMapping>
</PropertyGroup>
- Into
MainPage.xaml.csadd the follow code
protected override void OnAppearing()
{
base.OnAppearing();
throw new NotImplementedException('Method not implemented.');
}
- Set Compile mode to -> Release
- Compile and Run into an'IPhone device and launch app.
- The crash is visible to Sentry without the code context and symbols are missing.
Expected Result
The crash is visible to Sentry but and code context is visible.
Actual Result
The crash is visible to Sentry without the code context and symbols are missing.
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't workingFramework: MAUIPlatform: iOS
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsNo status
Activity
linear commentedon Aug 29, 2025
NET-432 iOS <EnableAssemblyILStripping>false</EnableAssemblyILStripping> not working: symbols missing
Flash0ver commentedon Sep 2, 2025
I'll take a closer look and return with more details tomorrow
jpnurmi commentedon Sep 10, 2025
EnableAssemblyILStripping=trueEnableAssemblyILStripping=falsejpnurmi commentedon Sep 10, 2025
sentry-clihas no problems parsing PDB 2.0 timestamp/age (?)giuseppenovielli commentedon Sep 10, 2025
Hi @jpnurmi,
thanks, can you try to run app in Release mode on real device (iPhone)?
The following screen, show more detail:
DEBUG ID -> show complete id, without -1, but symbolication are missing....
I don't undestand.
Thanks!
12 remaining items
jamescrosswell commentedon Sep 14, 2025
Removing the bug label from this, as it appears to be a problem even when Sentry has not been added to the application (see final words in this comment).
If it is a bug, then it's a bug in the MAUI/iOS SDK.
giuseppenovielli commentedon Sep 15, 2025
hi @jamescrosswell,
the following screen is for Microsoft.Controls.dll that i think Sentry can retrieve from GitHub?
Yes as you see from the following screen Built-in Repositories is configurated to retrieve symbols from Microsoft, Apple
jamescrosswell commentedon Sep 15, 2025
OK so it's not available on any of the symbol servers that Sentry checked.
@jpnurmi it looks like this one was in a "linked" directory:
Any chance that fix you rolled out for MacCatalyst is related here?
It is odd that we can't pull this from the Microsoft Symbol servers though.
jpnurmi commentedon Sep 15, 2025
Possibly! We could try extending
linked/$(AssemblyName).pdbtolinked/*.pdb.That's actually why I ended up here earlier, because I saw "linked/" in a screenshot while browsing the Bug-labeled issues, but then got confused by the debug IDs.
jamescrosswell commentedon Sep 16, 2025
Cool, thanks JP!
@giuseppenovielli in the mean time, you could try manually uploading those missing PDB files using the sentry-cli tool. Under the hood, that's all the build target is doing when you add
<SentryUploadSymbols>true</SentryUploadSymbols>and<SentryUploadSources>true</SentryUploadSources>. You can do this manually by running sentry-cli from the command line though (then you have a bit more control over what it uploads).There's a bunch of information about that in the Uploading Files section of the docs.
jpnurmi commentedon Sep 16, 2025
P.S. If you don't have
sentry-cliinstalled, you can run it straight from~/.nuget/packages/sentry/5.14.1/tools/sentry-cli-Darwin-arm64(or5.15.0,x86_64).