xamarin-Forms-iOS, Unable to start the emulator properly after pairing vs2022 with Mac

叶 何 0 Reputation points
2023-05-05T08:44:04.4533333+00:00
  1. As shown in the figure below, there is no iPhone device list after pairing with a Mac.
  2. Starting without a list will also be accompanied by this error Figure 2

User's image

User's image

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 33,096 Reputation points Microsoft Vendor
    2023-05-08T07:16:38.4733333+00:00

    Hello,

    Xcode14.3 support is in progress, please see [META] Xcode 14.3 Support for Xamarin, .NET 6/7 and MAUI · Issue #17561 · xamarin/xamarin-macios · GitHub and follow the progress.

    You could try download and install the builds into your Mac, then you can clean the bin/obj folder, re-open VS and pair to Mac again.

    In addition, you could try Visual Studio 2022 version 17.6 Preview 5, this version adds Xcode 14.3 support to Xamarin.iOS and Xamarin.Mac. Please see Visual Studio 2022 version 17.6 Preview 5 release notes.

    If it still doesn't work, it's recommended that you try going back to Xcode 14.2 as noted at GitHub.


    Update

    My vs2019 will encounter an error when paired with a Mac, with the error 'Cannot create a duplicate file when it already exists'.

    This error usually means you have many versions of VS in your Windows machine, and they all want to pair to mac. You can forget the connection, and clean the Broker, IDB, Build, and Designer Agents on the Mac. (Delete the XMA folder in Mac and Windows machine)
    Pay attention to re-opening VS and re-pairing to Mac.

    Update

    Support for Xcode 14.3 has now shipped as part of Visual Studio 2022 version 17.6 release, Visual Studio for Mac 2022 version 17.5.5. Please try updating VS.

    Best Regards,

    Wenyan Zhang


    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.


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.