Sam
Sam

Reputation: 30388

How to generate .dSYM file for .NET MAUI app

How do I generate symbols file for my .NET MAUI app?

Is it this setting?

<MtouchNoSymbolStrip>True</MtouchNoSymbolStrip>

Right clicked project and selected Properties. Under iOS > Build, I unchecked Symbols. It was originally checked.

enter image description here

I tried building/publishing with that setting but I still don’t see a .dSYM file anywhere in the publish folder.

Upvotes: 5

Views: 1838

Answers (1)

Brandon Minnick
Brandon Minnick

Reputation: 15322

On macOS

The .dSYM file is generated automatically by Xcode when we publish a Release build of our iOS / MacCatalyst .NET MAUI apps on macOS .

For example, here is how to publish a .NET MAUI app for iOS:

dotnet publish -f net9.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" -p:CodesignProvision="MyMauiApp"

After publishing the iOS/MacCatalyst app using dotnet publish, you can find + retrieve the .dSYM file using the following steps:

  1. Open Xcode
  2. In Xcode, in the menu bar, navigate to Window -> Organizer
    • Alternatively, in Xcode, use the keyboard shortcut cmd + option + shift + o
  3. In the Xcode Archives window, in the top left corner of the window, use the drop-down to select the app for which you want the .dsym file
  4. In the Xcode Archives window, on the left-hand menu, select Archives
  5. In the Xcode Archives window, locate the version of the published app
  6. In the right-click menu, select Show in Finder
  7. In Finder, locate the .xcarchive file, right-click -> Show Package Contents
  8. In Finder, you'll now find the dSYMS folder where you .dSYM file is located

enter image description here

Upvotes: 6

Related Questions