Can't run a MAUI application on macOS because the provisioning profile

Enrico Rossini 196 Reputation points
2024-06-14T16:14:45.6533333+00:00

I have my .NET8 MAUI that has already a version for iOS. I wanted to run the same project in macOS. I followed the process for the creation of the certificates from the Microsoft documentation.

At the end of the process, I downloaded the provisioning profile for the MacCatalyst. When I try to install the certificate

I get this error

Only Development Provisioning Profiles can be installed in System Settings. Production Provisioning Profiles are imported within Xcode.

InkedScreenshot 2024-06-14 at 16.29.23_LI

So, I opened Xcode and downloaded it from my account all the certificates. When I run the application in Visual Studio for Mac, I get this error.

Error: Could not find any available provisioning profiles for LanguageInUse on MacCatalyst.

InkedScreenshot 2024-06-14 at 16.29.11_LI

What did I miss?

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

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 34,556 Reputation points Microsoft Vendor
    2024-06-17T02:34:31.37+00:00

    Hello,

    The doc you mentioned is about publishing, and it only works on release/distribution mode when you archive the project and publish the app. However, you said you want to run the app on your mac, it means your project is under debug/development mode, and it needs a development provisioning profile.

    On the step 3 of creating a provisioning profile, please choose Developpement-> macOS App Development instead of Distribution->App ID. Then you can download the/provisioning profile again and try to check if the issue still exists.

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.