I ran into this same issue and after a few hours of troubleshooting and "trial and error" adventures here is what fixed the "No Archive builds available" issue on one of our dev machines.
Archive Manager was not showing any historical or new archives for the current solution.
Would not show any archives for iOS and Android.
(affected all projects on the dev machine)
TLDR: Rename "\AppData\Local\Xamarin" folder and let VS will recreate it.... I say rename so you can salvage historical settings/files.....read details below.
Make sure you don't leave remnants of extracted ipa's inside the Xamarin Archive folders or any other files that may trip up VS parser. Apparently, Visual Studio has some issues when trying to parse the directory tree when trying to display the "Archive Manager" screen. So keep them clean, folks.
This may not be the same case for everyone, but I thought it may save some hours of time for someone.
VS 2022 Professional - Version 17.12.3 and Version 17.12.3
These did NOT work....
- Created a new MAUI project as a baseline, but still had same issues as other projects.
- Repair VS
- Rollback VS
- Upgrade VS (Luckily a new build just popped up during my troubleshooting, since I was already on the most recent)
- Messing with Keystore like some posts had recommended
- Rebuild Intellisense
- Change Xamarin output folders
- Reinstall Android SDK Manager
- Deleting and allowing VS to recreate "Android\android-sdk" folder
This actually worked...
"\AppData\Local\Xamarin"
Rename the Xamarin folder to allow VS to recreate the folder.
This fixed the problem, great...right?
Not exactly. I wanted to preserve historical builds and previous settings and keystores.
So I used a backup and started whacking folders one at a time and allowed VS to recreate them...
Finally, I traced it down to one of my iOS datetime stamped folders under "Xamarin\iOS\Archives"
There was an "extracted" ipa subfolder. Apparently, the dev was inspecting an ipa file for another issue and left these files. Once I deleted this subfolder, all was good again.
If this didn't help you, good luck with the battle...