-
-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Labels
.NETPull requests that update .net codePull requests that update .net codeFramework: 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.cs
add 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 codeFramework: MAUIPlatform: iOS
Projects
Status
Done
Status
No status