Error Adding account to Visual Studio 2022

Hi, I am trying to debug a .NET MAUI App on an iPhone in Visual Studio 2022 on Windows. But to do this I need to add my Apple Developer Account to Visual Studio 2022.

When I try to do this, I get an error message saying:

Error adding account There was an error while trying to log in: Authentication service is unavailable.

When I give it a different user ID that is part of the same Apple Developer Account it gives the same error.

When I give an incorrect password, the same error appears.

Same issue here!!!!We have the same problem, we are blocked and this has a very high impact on our company, when will it be solved?

Same issue, can't publish...

I was able to use the workaround listed on this other post to successfully publish an update to my app.

https://developercommunity.visualstudio.com/t/Cannot-add-Apple-Account-VS-2002-Enter/10773193

Hopefully others will also be able to publish as well.

Same problem here. Been trying to find a solution for a couple of days now, without result.

The same issue.

Issue still persists and not resolved as of now.

Just to add to the pile-on, it's happening for us too. Was able to deploy to an iPhone until a couple of hours ago, then got the "could not find any available provisioning profiles" error. I suspect it's because of the "Authentication Service is unavailable error" that we're all talking about. Please help Apple! Can still use simulators but I need to deploy to a real device for certain things too.

Same here. It was working great for a few months, then someone changed the card number on our corporate account. Nothing worked AND no visible indication in the developer portal, THEN a few days later the portal said we needed to pay up. Did that, still didn't work and no indication in the portal. A few days after that portal said we needed to agree to something, did that, and it still doesn't work.

Been happening for us for about a week on WIndows PC. Tried all the "fixes" of deleting certs and profiles and account from VS and no luck :(

Same here.

same here.

Same here

Same here

I'm experiencing the same issue on windows visual studio 2022.

Same here, but as AirborneMarik mentioned above they have a workaround posted on the Visual Studio developer community in this thread:

https://developercommunity.visualstudio.com/t/Cannot-add-Apple-Account-VS-2002-Enter/10773193

I believe the primary workaround is that you can still manually specify your provisioning profile and signing certificate even though Visual Studio doesn't let you sign in to your Apple developer account.

This workaround came too late for me, but I was able to build, debug and deploy on the mac using a combination of the dotnet CLI, VSCode, and Xcode. I still used Windows to do Android development and deployment, and just used the mac for iOS.

I did run into a problem where the publish was failing on Windows because it wasn't able to do the iOS build, so I ended up setting up my .csproject file so that it only targets iOS if running on a mac, and only targets Android if running on Windows.

Oh, and there seems to be an issue in XCode when doing the publish to the store, so you have to choose the "Custom" option so it lets you select the provisioning profile. For some reason it detected the signing cert okay, but it didn't choose the profile even though it was the only one in the dropdown list.

It is unfortunate that a critical feature of the developer experience was deleted seemingly without warning. It almost feels like an attempt to push people towards native development tools by not providing a stable platform for multi-platform development systems.

Error Adding account to Visual Studio 2022
 
 
Q