iosmauicode-signingvisual-studio-mac-2022

.Net MAUI app transferred from pc to mac won't run on iOS Simulator: "Could not find any available provisioning profile"


I created a .Net MAUI app on Visual Studio for Windows. Now I need to work on it on Visual Studio for Mac. I cannot build it due to the following error: Could not find any available provisioning profiles for MyProject on iOS.

I tried whatever I could, created a new project on xCode with the same bundle identifier as in my Info.plist etc. Nothing helps. All I want currently is just to be able to run the app locally. I don't need any signing for this. When I create a new blank Maui app on Mac, neither its project file nor Info.plist mentions anything about signing or bundle. And it runs without problem. I tried to remove that stuff from my project, but keep getting this error. What makes the project require a provisioning profile, and how can I prevent it?


Solution

  • As David Shochet said, you need to delete the aps-environment key from Entitlements.plist to solve this problem.