C# Xamarin.iOS cannot see line numbers

Hi,

I have a Xamarin C# iOS on the app store. When I get unhandled exceptions I can’t see the line numbers in my “Issues” list when the app is running “in the wild” or when not compiled with debug symbols included. When I’m running a debug build I can see the line numbers. I have uploaded my symbols successfully with sentry-cli using the following command:

sentry-cli --auth-token myAuthToken upload-dif --org myOrg --project myProject /Users/me/Library/Developer/Xcode/Archives/2020-12-05

… where 2020-12-05 contains my .xcarchive file. Here are the results:

⠁ Searching for debug symbol files…
⠉ Searching for debug symbol files…

Found 7 debug information files
WARN 2020-12-05 09:24:13.369732 -06:00 section #1 size 38998760 out of bounds (from goblin)
WARN 2020-12-05 09:24:13.370072 -06:00 section #4 size 606440 out of bounds (from goblin)
WARN 2020-12-05 09:24:13.370082 -06:00 section #5 size 306289 out of bounds (from goblin)

There were several more of these goblin warnings. Is that a concern?

Have I missed any other steps I need to take in order to start seeing line numbers for my app in production? I’m not aware of any build settings in Visual Studio that might keep the debugging symbols from making it into the dSYM, but I’m a bit of a novice at dSYM’s, symbolication and stuff so there’s that… :blush:

Thanks in advance for any help/advise someone can give!

Sean

.

The symbols you are uploading are just the native ones. To get line numbers of your C# code, the pdbs generated by the build process would be needed on the server but symbolicating Xamarin stack traces isn’t supported at this time. In fact, I don’t believe any service can provide line numbers for Xamarin at this time.

The way Xamarin offers their users is for you to run mono-symbolicate with the stack trace generated at runtime:

And there’s more details here: https://github.com/xamarin/release-notes-archive/blob/9bac84d3db0a16bcb258c602f71eccfa814ba0a0/release-notes/android/xamarin.android_6/xamarin.android_6.1/index.md#adding-resources-to-the-default-project

@ibm5155 is working on a Xamarin SDK: https://github.com/getsentry/sentry-dotnet-xamarin