Xamarin.iOS Deployment Error on Visual Studio

Mark Hansen 21 Reputation points
2022-01-12T15:36:55.31+00:00

Hello,
I was looking to try building mobile apps, and had set up Xamarin in Visual Studio. The project that I created was simply the default Mobile App (Xamarin.Forms) template with no changes made to it. After setting up my iPhone 11 with Hot Restart, I tested the project to see what would happen, and I was given the message "Xamarin.ios does not support running or debugging the previous built version of your project." Upon looking at the Output information, I found another error, which reads the following:

164402-image.png

At this point, I'm unsure what to do about this error. I've looked into this error, and in the past, I've seen the solution often come down to "update Visual Studio." I have updated Visual Studio and my iPhone to the most recent iOS version (15.2), and I'm still getting this error. According to the Visual Studio 2019 release notes, this error was fixed in version 16.11.0, but I'm still getting it.
https://learn.microsoft.com/en-us/visualstudio/releases/2019/release-notes

Is there anything I can do from here? I do not have a Mac, so anything involving that is out of the question.

Developer technologies | .NET | Xamarin
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2022-01-14T09:47:58.787+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    VS 2022 (17.0.4) update contains the support for XCode 13.2 and iOS15.2, you could try to use VS2022 and double check the following steps :

    1. clean solution and remove bin/obj folder, go to XX\out\xxx.ipa(your ipa file path in the picture you provided), delete the out folder.
    2. connect your iPhone with your PC
    3. (important)open iTunes, sign in your apple developer apple id
    4. open VS, go to Tools->Options->Xamarin-> Apple Account, add your apple id( If you are already logged in, remove it and add again)
    5. go to iOS Bundle Signing, click select a team , then select your team again, it will update the VS: WildCard Development profile.
    6. select your device in the drop-down menu to deploy.

    I will report this issue about VS2019 by internal ways, you also could report it to developer community: https://developercommunity.visualstudio.com/report?space=8&entry=problem.

    Tips: After I deploy the app via VS2022, I can deploy it via VS2019, there is no such error on VS2019.

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.