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.