Problem encountered while configuring the automatic provisioning profile for Xamarin iOS in Visual Studio 2023 in window 11

Sanjay Kumar Jha 151 Reputation points
2023-09-27T13:29:15.9166667+00:00

I've successfully generated a new API key for setting up my Apple account in Visual Studio Xamarin. I've added the new API key, which you can observe below.

AppleIssue

However, when I opt for 'Bundle signing' with Automatic provisioning, it encounters an error. I'm receiving the following error message. It's worth noting that this setup was functioning correctly previously. I'm uncertain about the root cause of this issue. Please refer to the attached file.

The only modification I made was removing the previous API key and attempting to add a new one.

AutomaticProvisionIssue

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,574 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,574 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
467 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points Microsoft Vendor
    2023-09-28T06:24:07.2066667+00:00

    Hello,

    From the screenshot, you are configuring Hot-Restart in Xamarin, and you could refer to the doc-Hot-Restart in MAUI, and you got this error because you (or your team members) have created a development provisioning profile with another machine.

    As described in the error message, there are two solutions:

    1. Invoke the previous certificate that is created by the API Key.

    Detail steps: Go to the Certificates list in Appstore Connect , find all certificates whose name is in format "XXXXX Created via API" and created by "API key: XXXX", then click the item and invoke it. After that, you can configure the Automatic provisioning like your second screenshot.

    If you have any other issues during this process, please feel free to post in here.

    1. Find the certificates and provisioning profile in your (or your team members) other machines, then import the certificates and provisioning profile. All Certificates and profiles are in %HOME%\AppData\Local\Xamarin\iOS\Provisioning\Certificates and %HOME%\AppData\Local\Xamarin\iOS\Provisioning\Profiles, please export those files into your machine.
      It is possible that there are available certificates in the KeyChain of your Mac, and you could try Pair to Mac.

    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 comments No comments