We would prefer to use the dotnet publish
command but we need the .dSYM file for reasons. We find that the time to generate the .ipa file is much quicker with dotnet publish
, so that is the preferred method to get our app in the release pipeline. However, no .dsym file is generated during the dotnet publish
.
Here is how to publish a .NET MAUI app for iOS and include your Code Signing Key and Provisioning Profile to generate a .dSYM
file:
dotnet publish -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" -p:CodesignProvision="MyProvisioningProfile"
After publishing the iOS/MacCatalyst app using dotnet publish
, you can find + retrieve the .dSYM
file using the following steps:
Window
-> Organizer
cmd + option + shift + o
.dsym
fileArchives
Show in Finder
.xcarchive
file, right-click
-> Show Package Contents
dSYMS
folder where you .dSYM
file is located