Xamarin VS 2019 - iOS - works on simulator but not phone

MAGIC MAGIC 121 Reputation points
2021-07-13T17:27:03.303+00:00

I'm writing a Xamarin app with Visual Studio 2019.

The app deploys fine on an Android and Android simulator.

The app also deploys fine on an iOS simulator.

But when I try to use the phone which is connected wirelessly to my MAC I receive error:

Failed to codesign 'bin/iPhone/Debug/MyFirstProject.iOS.app': Warning: unable to build chain to self-signed root for signer "Apple Development: xxxxxxxxx"
/Users/xxxxxxxx/Library/Caches/Xamarin/mtbs/builds/MyFirstProject.iOS/b3abbddebddecdd063975729ce3a99c630351cdb91eae3b0eaddcd0abeceb326/bin/iPhone/Debug/MyFirstProject.iOS.app: errSecInternalComponent MyFirstProject.iOS

Any idea how to resolve?

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

2 answers

Sort by: Most helpful
  1. MAGIC MAGIC 121 Reputation points
    2021-07-14T03:06:19.8+00:00

    My certificate is brand new.

    When I connect the iOS phone to my computer with a USB cable, right click on OS project and deploy, it works (found this solution researching).

    However, when I try to run it wirelessly, I receive that error.


  2. MAGIC MAGIC 121 Reputation points
    2021-07-14T03:08:32.687+00:00

    Also, the certificate was created on my Mac Air device by VS 2019 after I set up automatic.

    The certificate is new.

    0 comments No comments

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.