Thank you so much for the post. There is a part that was interesting to me, you said you having issues with Visual Studio 2022? What about when you use Xcode 26.x+? Do you have the same issue?
Go to the Mac you are using as your build host.
Open Xcode.
Go to Xcode (in the top menu bar) > Settings (or Preferences) > Accounts.
Select your Apple ID. If it says your session has expired or requires action, sign in again.
Even if it looks fine, click the "-" (minus) button to remove the account, and then the "+" (plus) button to add it back.
Are you the owner of the developer account?
Only the "Account Holder" can accept the main Apple Developer Program License Agreement.
Are you are an "Admin" or "Developer" on a company account?
Please let me know about Xcode?
Thanks
Albert Pascual
Worldwide Developer Relations.