Hello,
I have connected the VM to my host Mac and am able to build and debug the app on actual iOS devices.
From this, I know the Windows machine has paired to the Mac and it works on debug mode.
I did the dotnet publish -f net8.0-ios -c Release command on a command line in the folder of the project and get an error:
This dotnet publish -f net8.0-ios -c Release
command is missing the codesign parameters.
For example, you could use the following command:
(Take care to find your own sign identity and provisioning profile)
dotnet publish -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:CodesignKey="Apple Distribution:XXX" -p:CodesignProvision="MyMauiApp"
For more details, please refer to Publish a .NET MAUI iOS app using the command line - .NET MAUI | Microsoft Learn
Besides, there is another way to publish the app, you could archive the project with Visual Studio 2022 directly. See Publish a .NET MAUI iOS app for App Store distribution - .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.