I would like to share what I do, because I suffer with pusblishing to iOS too.
First I test everything on Simulator or my local iPhone device.
At Visual Studio 2022:
I swith the project to Release and chose "iOS Remote Devices \ Remote Device";
Pair with my Mac (in my case it's a virtual machine);
On Project properties, I switch Project Signing to:
Scheme: Manual Provisioning;
Signing Identity: I chose my "iPhone Distribuition xxxx" profile;
Provisioning Profile: I chose "iOS Distribuition xxxx" profile;
Confirm I successfully Build / Rebuild the project without errors;
Chose Publish on my project;
While publishing, I go to my Mac and open XCode and open menu "Window \ Organizer" and wait for my project appear on Archives tab;
After see the project on Archivies I can "Distribuite App" to Apple;
Abort any Publish task still pending in Visual Studio;