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.
I tried building/publishing with that setting but I still don’t see a .dSYM file anywhere in the publish folder.


You are on Windows, and the
.dSYMfiles are typically generated as part of the iOS build process when building from a Mac, or through a CI/CD pipeline configured for iOS builds, such as GitHub Actions. While you can develop .NET MAUI apps on Windows, for iOS builds, especially to generate.dSYMfiles, you often need to be on a Mac or use a CI/CD system that runs on macOS.The
<MtouchNoSymbolStrip>setting is related but might not directly influence the generation of.dSYMfiles. Instead, make sure your iOS project is configured to include debug symbol generation during the build. That is typically controlled by the compiler and linker settings in the iOS project properties.Make sure the "
Debug Information" option in your project settings is correctly set up. For Visual Studio on macOS, this can be found under the iOS build settings. Make sure it is set to generate full debug information.Since you are on Windows, try and build your app on GitHub using Actions, making sure your workflow is configured to run on a macOS runner (like the recent Q1 2024 macOS 14 (Sonoma) image runner), and explicitly include steps to archive and upload the
.dSYMfiles as artifacts. That might involve custom scripting within your GitHub Actions workflow to locate and package these files post-build.See also SideStore/SideStore workflow as an example, with its
MakefilesettingDWARF_DSYM_FOLDER_PATH(see this thread on the default value ofDWARF_DSYM_FOLDER_PATHbeing$(CONFIGURATION_BUILD_DIR)).You would need to troubleshoot this: assuming your project's build configuration is set up correctly to generate symbols, and set to generate full debug information, double-check the location of
.dSYMfiles (it should be in the same directory as the compiled application bundle).Try also, in your GitHub Actions workflow, to list the contents of directories where you expect the
.dSYMfiles to be generated (to confirm whether the.dSYMfiles are being created and where they are located)See also "What's the dSYM and how to use it? (iOS SDK)", with this 2020 answer.