.NET MAUI Application is not supported on Visual Studio Mac

Aleena George 20 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?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,620 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,895 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,686 Reputation points
    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