Xamarin IOS Debugging Error

GÖKSEL YÜCE 41 Reputation points
2022-04-28T07:14:16.053+00:00

Hello,
I am using visual studio 2019 version 16.11.13 on my windows 10 machine. In my Xamarin project, I connected an iphone device with a usb connection. But I cannot debug my Xamarin application on this device. I worked on the simulator constantly before. For the first time, I want to connect a physical device and debug it. I don't know about the subject, can you help me?
I downloaded iTunes on my Windows machine and made the phone connections.
I ask for your opinions and help. @Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.)
Thanks in advance.

197301-xamarin-ios-hata.png

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

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,221 Reputation points Microsoft Vendor
    2022-04-29T03:14:48.95+00:00

    Hello,

    From the error message, we can see it says that the provisioning profile is not found. Since you are debugging by Hot Restart, make sure you have entered your Apple Developer account and enable automatic provisioning in the project.

    But I have to say, there is a known issue being tracked at https://developercommunity.visualstudio.com/t/Cannot-load-Apple-certificates/1692185. It's related to automatic provisioning. There are temporary workarounds documented in the bug report.

    So, It's suggested that you can use Manual provisioning for Xamarin.iOS, and refer to the above workarounds to import the certificate and profile.

    In addition, you can connect your device with mac then pair to mac, and debug on your device. At this time, we still have to choose Manual provisioning for Xamarin.iOS.

    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.


0 additional answers

Sort by: Most helpful