Failed to sync provisioning profiles with Apple Developer Portal - Authentication service is unavailable

Se 21 Reputation points
2021-04-14T21:20:42.417+00:00

I have an existing Xamarin.Forms app, and I added a new Share Extension project. The iOS project bundle identifier is like: com.mycompany.MyAppName, and the Share Extension identifier is com.mycompany.MyAppName.MyExtension.

But after creating the new App ID com.mycompany.MyAppName.MyExtension in the Apple Developer portal (as well as creating the wildcard com.mycompany.MyAppName.* ID), and creating provisioning profiles for it, downloading and installing the provisioning profiles, in visual studio is still says No Provisioning profiles found.

When I try automatic provisioning, visual studio creates the wildcard "*" ID, but then when it tries to download the provisioning profiles, I get the error Failed to sync provisioning profiles with Apple Developer Portal - Authentication service is unavailable". I have tried on both VS (Windows) and Visual Studio for mac, both with the same error.

I tried deleting the provisioning profiles, Extension & wildcard app IDs, etc. from the Apple Developer Portal, recreating them, to no avail.

The only advice I found was not helpful: https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/automatic-provisioning?tabs=macos#troubleshoot
"If the automatic provisioning process fails with the error message Authentication Service Is Unavailable, sign in to either App Store Connect or appleid.apple.com to check that you have accepted the latest service agreements."

But our account has already accepted all the latest service agreements so I do not have this message.

Also, I could successfully run the App with the provisioning profile for com.mycompany.MyAppName, but once I added the Extension project & referenced it from my Container app project, I cannot compile it due to the lack of provisioning profile for the Extension project.

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

Accepted answer
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,756 Reputation points
    2021-04-15T08:15:34.303+00:00

    Hello,

    Welcome to Microsoft Q&A!

    @Se

    Here are Normal suggestions for you

    • Delete all the Provisioning profiles in path ~/Library/MobileDevice/Provisioning\ Profiles .
    • Login your apple account in Xcode - Preference - Accounts , click Download Manual Profiles ,and check valid certificate lists with clicking Manage Certificates .
    • Download the Certificates and corresponding Provisioning profiles separately for your main App and Extension , and click to install .
    • Check if the Provisioning profile is available in Xcode .

    If the response is helpful, please click "Accept Answer" and upvote it.
    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

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.