Hello,
Please suggest how do I create such executable file for iphone using .NET MAUI
You can use the following command:
dotnet publish -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" -p:CodesignProvision="MyMauiApp"
Note: .net7 is not supported, please update to .net8. Publishing iOS app needs a Mac (if you are using VS on a Windows machine, please pair to Mac) and the matching distribution certificate and provisioning profile.
Besides, it's recommended that you use VS directly to publish iOS app.
Please see
Publish a .NET MAUI iOS app using the command line - .NET MAUI | Microsoft Learn
Publish a .NET MAUI iOS app for App Store distribution - .NET MAUI | Microsoft Learn (This doc includes how to create distribution provisioning profile)
Pair to Mac for iOS development - .NET MAUI | Microsoft Learn
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.