Failed to sync provisioning profiles, trying to sign in on Mac VS. VS can't see my keys.

stephan kranenfeld 21 Reputation points
2022-05-03T06:32:14.727+00:00

Details;
Mac, OS: 11.6.5 (can not update past this as it is a mac pro-2014 16gb ram 2.2ghz cpu)
VS: 2019, 8.10.22, build 11.
Xcode: 13.2.1 (can't update, again, Mac OS limit)

issue:
first, it starts with "iOS code signing key 'iPhone Distribution: Stephan Kranenfeld (A8RXDA69JR)' not found in keychain." when i tried to archive my app to upload to the ios store. this is an existing app i have uploaded before and already exists on the store, from this mac, i am trying to update that version. However, those keys do exist in my keychain and i have deleted ALL my keys and requested new ones from Xcode as well as re-downloading my distribution cert from my developer account. i have these keys in my chain and all are marked as valid.
"Apple Distribution: Stephan Kranenfeld (A8RXDA69JR)"
"Apple Worldwide Developer Relations Certification Authority"
"Developer ID Application: Stephan Kranenfeld (A8RXDA69JR)"
"Developer ID Installer: Stephan Kranenfeld (A8RXDA69JR)"

if i go into VS>Preference>Apple Developer accounts, my apple ID is there, i have removed it and signed back in, this appears to work but i no longer get asked for a login request from a device, i hit no once by mistake and have tried again but since hitting no it hasn't come back, tried from different network and days later. When i hit View Details, i get 2 errors showing;
Failed to sync signing identities with Apple Developer Portal. ; Authentication Error. Xcode 7.3 or later is required to continue
Failed to sync provisioning profiles with Apple Developer Portal.; An active membership to the Apple Developer Program is required to provision iOS devices

Now, i am running Xcode, 13.2.1 and i have an active developer lisence. so these dont make sense either.

My attempts to fix:
First i tried signing in and out of Xcode and VS, i have deleted and reinstalled my keys, i have deleted Xcode and VS and reinstalled both of these, i deleted all VS local data using the terminal command from Microsoft Learn.
"sudo rm -rf "/Applications/Visual Studio.app"
rm -rf ~/Library/Caches/VisualStudio
rm -rf ~/Library/Preferences/VisualStudio
rm -rf ~/Library/Preferences/Visual\ Studio
rm -rf ~/Library/Logs/VisualStudio
rm -rf ~/Library/VisualStudio
rm -rf ~/Library/Preferences/Xamarin/
rm -rf ~/Library/Application\ Support/VisualStudio
rm -rf ~/Library/Application\ Support/VisualStudio/7.0/LocalInstall/Addins/
rm -rf ~/Library/Application\ Support/VisualStudio/8.0/LocalInstall/Addins/"

please help;
im at the end of my rope here, i have no idea what else to try bar formatting the entire mac. i don't have a 2nd mac to try on to see if it is the mac or not.

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

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 32,286 Reputation points Microsoft Vendor
    2022-05-03T08:18:23.567+00:00

    Hello,

    This is a known issue being tracked at https://developercommunity.visualstudio.com/t/Cannot-load-Apple-certificates/1692185. There are temporary workarounds documented in the bug report. You could follow the progress.

    Since you are using VS for Mac, try to download the distribution profile to your Mac from https://developer.apple.com/account/resources/profiles/list, and double-click it. Then open Info.plist in your iOS project, select Manual Provisioning in the Signing section, and click Bundle Signing Options, select the correct certificates and provisioning profiles.

    For more details, refer to
    https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/manual-provisioning?tabs=macos
    https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/?tabs=macos

    This is a site for support, so please use the right site to requests new feature requests about a Microsoft product or report any bugs. If you want to report a problem about VS for Mac, see https://learn.microsoft.com/en-us/visualstudio/mac/report-a-problem?view=vsmac-2019

    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 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.