Executable for Iphone

Anonymous
2024-06-28T13:17:43.84+00:00

I use the below command to generate apk file for android .

keytool -genkey -v -keystore bmicalc.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000

dotnet publish -f:net7.0-android -c:Release /p:AndroidSigningKeyPass=maui@23 /p:AndroidSigningStorePass=maui@23

Please suggest how do I create such executable file for iphone using .NET MAUI

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,135 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 Reputation points Microsoft Vendor
    2024-06-29T05:30:22.8966667+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful