Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error adding Apple Developer Account: authentication service is unavailable

Tags:

ios

xamarin

I’m trying to add an apple developer account to VS 2019 Community ver. 16.9.2 for Windows.

Once I set the Apple ID and Password and click on Login, I get the following message: “There was an error while trying to log in: Authentication service is unavailable.”

Authentication service is unavailable

The Apple ID and Passwords are correct, in fact, if I type in the wrong credentials then Visual Studio complains about invalid id/password combination.

I disabled the firewall during the process so this should not be a connection issue.

Also, I made sure I have no pending agreements on Apple Store Connect. My apple developer account is valid and has no issues. In fact, I can use the same account on xcode just fine.

Is there some workaround?

like image 581
rettiseert Avatar asked Mar 24 '21 21:03

rettiseert


People also ask

How to improve user authentication in iOS devices?

Make it easy for users to log into apps and services. Use the Authentication Services framework to improve the experience of users when they enter credentials to establish their identity. Give users the ability to sign into your services with their Apple ID.

What is an authentication object in iOS 14?

An object that performs a request to modify an account’s authentication properties. A view controller that can upgrade user passwords to strong passwords, or convert accounts to use Sign in with Apple. An object that you interact with to change an account’s password or to upgrade to Sign in with Apple.

Are the Apple ID and passwords correct on Apple Store Connect?

The Apple ID and Passwords are correct, in fact, if I type in the wrong credentials then Visual Studio complains about invalid id/password combination. I disabled the firewall during the process so this should not be a connection issue. Also, I made sure I have no pending agreements on Apple Store Connect.

How do you authenticate a user in an app?

Use a web authentication session to authenticate a user in your app. Use time-based codes generated on-device for a secure authentication experience. A session that an app uses to authenticate a user through a web service. A mechanism for generating requests to authenticate users with third-party providers.


1 Answers

THIS ISSUE IS FIXED IN THE 16.9.6 VISUAL STUDIO UPDATE !!!


(old workarounds) There are some workarounds but none of them worked for me and updating to the latest version didn't help either (Visual Studio 2019 16.9.4). For as far as I know this issue persists even on version 16.7.5 of VS2019. For some people the workarounds seem to work so I will list them here so hopefully some of us can get on with our projects.

Workaround 1 (offered by Xamarin team):

  • Close Visual Studio 2019
  • Delete the following folder %LOCALAPPDATA%\Temp\Xamarin\XMA
  • Open project -> clean sollution
  • Set Automatic for bundle signing in the iOS project settings
  • Rebuild (- if it doesn't work try again after restarting pc)

Workaround 2:

  • Delete your apple account from VS2019 through Tools–> Options --> Xamarin–> Apple Accounts
  • Sign back in again
  • Download your provisioning profile from developer.apple.com account to you pc
  • Copy and paste it into: \Users\YOUR_USERACCOUNT\AppData\Local\Xamarin\iOS\Provisioning\Profiles
  • If it doesn't work, perform in combination with workaround 1

Workaround 3:

  • Delete apple account from VS
  • Remove certificates from AppData\Local\Xamarin\iOS\Provisioning\Certificates
  • Remove profiles from AppData\Local\Xamarin\iOS\Provisioning\Profiles
  • Add Apple account
  • Set to Automatic Provisioning and select team, it will error again but will reinstall the certificates
  • Manually download provisioning profile and copy it to - AppData\Local\Xamarin\iOS\Provisioning\Profiles
  • Run the archiving process should error out again but the “id” or name of the provisioning will be displayed in the error
  • Rename the provisioning file to match and rerun archiving.

As I said these workarounds don't work for me but I hope they do for you. If it doesn't then you're in the same boat as me and you're going to need to follow this thread: https://developercommunity.visualstudio.com/t/Error-adding-Apple-Developer-Account:-au/1380749?viewtype=all

like image 173
Michael Avatar answered Oct 01 '22 01:10

Michael