An active membership to the Apple Developer Program is required to provision iOS in .NET MAUI

Sanjay Kumar Jha 156 Reputation points
2022-08-26T07:29:11.977+00:00

Hi

I am getting the following error:

"There was an error while trying to log in:An active membership to the Apple Developer Program is required to provision iOS devices". unable to find the cause behind it.
I am also attaching screenshot of my developer account.

235565-inked235166-appleaccounterror-li.jpg235490-inked235165-appledeveloperiddetail-li.jpg

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,666 Reputation points Microsoft Vendor
    2022-08-29T06:49:29.347+00:00

    Hello @Sanjay Kumar Jha ,

    You need to create an App Store Connect API key: go to App Store Connect(you select Membership now), click User and Access, go to Keys tab, choose **App Store Connect API ** , then generate an API Key. Please be careful to save the downloaded key, it can only be downloaded once.

    After that, you can open VS and go to Tools-> Options-> Xamarin-> Apple Accounts -> Add-> Individual account, enter your API key.

    For more details, you can refer to:
    Creating API Keys for App Store Connect API | Apple Developer Documentation
    .NET MAUI hot restart for iOS device deployment - .NET MAUI | Microsoft Learn

    Note: There is some security information in the images, I have edited it. Please be careful to post the security information.

    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

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.