.NET MAUI Application is not supported on Visual Studio Mac

Aleena George 30 Reputation points
2024-04-20T11:26:10.47+00:00

When I tried to run the MAUI project on Visual Studio Community 2022 for Mac, I faced the error below.

Error: Could not find any available provisioning profiles for ApplicationName on iOS.

I fixed the above error by deleting the .vs, obj, and bin folders on the project and deleting the aps-environment key from Entitlements.plist as suggested on this thread and also from Visual Studio I tried to clean and rebuild the solution. After that, the MAUI project is installed on the iOS simulator, but the application does not open and shows the alert below.

you can't open the application "Application Name" because this application is not supported on this Mac.

ScreenShot:

image_2024_04_22T07_21_15_075Z

This is the first time I am running the MAUI app on my Mac. I installed the latest version of Visual Studio for Mac and Xcode. Any other softwares do I need to install the proper working of .NET MAUI on Mac?

Can you please provide me with a solution to resolve this issue?

Developer technologies | .NET | .NET MAUI
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,236 Reputation points Volunteer Moderator
    2024-04-20T16:49:22.4366667+00:00

    You’re probably building the wrong binary type. The simulator is the same hardware as hosting Mac. So on Intel Mac you need to build x86, on arm Mac you need to build arm64.

    note: Visual Studio Mac support ends in August. You should be picking your replacement. I switched to Xcode and Swift/SwiftUI

    1 person found this answer helpful.

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.