Can't run app in iOS simulator using Visual Studio for mac

user123 10 Reputation points
2023-06-26T15:48:31.6533333+00:00

Hello,

I want to build a .NET MAUI app for Android and iOS.

I'm rather new on this technology so first I just wanted to know if the app was building and deploying correctly both on Android and iOS. On Android emulator, it works fine.

For iOS, my app is building successfully. The simulator launched but immediately the run stops, so the app is not deployed. I tried with different iOS simulators without success.

I'm using Visual Studio 2022 for mac, version 17.6 and Xcode version 14.3.

Have I miss something ?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,618 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
    2023-06-27T05:48:06.07+00:00

    Hello @user123,

    Welcome to Microsoft Q&A forum.

    No more other components need to install actually, just double confirm that you have installed .NET, see this document for details: Installation.

    Since Visual Studio 2022 for Mac version 17.6.0 added the support for Xcode 14.3 for Xamarin.iOS and Xamarin.Mac, the iOS simulator should work. Not very sure if some compatibility issues still exist, there’s a similar ticket reported before => Can’t deploy to iOS simulator on Visual Studio Mac in MAUI which is currently Under Consideration. I may suggest submitting a ticket on our Developer Community - Visual Studio for Mac for further investigate.

    BTW, previously, Xcode 14.2 worked in VS 2022 for Mac, perhaps, you can try to use Xcode 14.2 as a temporary workaround([META] Xcode 14.3 Support for Xamarin, .NET 6/7 and MAUI).

    Best Regards,

    Tianyu


    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.


  2. Oleg Suprun 0 Reputation points
    2023-11-23T20:20:44.48+00:00

    Hi , as of November 23 i have same issue. iOS emulator is launching from VS2022 but the app immediately stops. Only android simulator is working

    0 comments No comments

  3. DanFisken 0 Reputation points
    2023-12-11T20:43:23.88+00:00

    Hi! I also have this problem. Desember 2023. As said, only the Andriod simulators is working..