Search code examples
mauivisual-studio-mac

.NET MAUI unable to launch app on iOS Simulator


For some reason my app won't launch on iOS simulator. It works on a physical device. The app is deployed but incorrectly and won't run, see screenshot 1.

  1. If I create a new project, it runs properly. I have compared target platforms and csproj files, both are identical.
  2. If I tap the icon I get the message from screenshot 2.
  3. I don't see any build errors.
  4. I use VS for Mac 17.4.2
  5. If I run this same app in VS Windows (via parallels) the app starts correctly on iOS simulator.

Any ideas?

Screenshot 1 enter image description here

Screenshot 2 enter image description here


Solution

  • Xcode 14.2 is still working on and it's not supported yet by Visual Studio for Mac. You could check the release note here Visual Studio 2022 for Mac v17.4.2.

    As an alternative, you could now try downgrading back to Xcode 14.1 and build the project. If you still have questions, feel free to ask.

    Hope it works for you.