question

Se-5654 avatar image
0 Votes"
Se-5654 asked PhongHuynh-1342 published

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

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://docs.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.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ColeXia-MSFT avatar image
0 Votes"
ColeXia-MSFT answered PhongHuynh-1342 published

Hello,

Welcome to Microsoft Q&A!

@Se-5654

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Where is the path ~/Library/MobileDevice/Provisioning\ Profiles in Windows?

2 Votes 2 ·