Search code examples
iosvisual-studio-macapple-developer-account

Failed to synchronize ****.com teams with Apple Developer Portal.No such host is known. (Xamarin project).?


Error : Failed to synchronize ****.com teams with Apple Developer Portal.No such host is known.

Apple developer account was working fine but on a sudden showing this error while opening Apple developer accounts from preferences

Path--> Visual Studio - Preferences - Apple developer Accounts

Visual studio 2019 for mac-version 8.3.8(build 8) Xcode- 11.2


Solution

  • It's a bug with Visual Studio for Mac. See this "closed" issue or a related one on Microsoft's Visual Studio website as well as a thread on Xamarin forums.

    The "closed" issue page mentions that as a workaround, you might be able to manually provision by:

    • Quit Visual Studio for Mac
    • Launch XCode, select Preferences -> Accounts and "Download Manual Profiles" for the account you'd like to use (and/or remove and re-add the account)
      • In my experience, you might even need to create, build and run on a simulator or physical device a dummy project with the same bundle identifier as your Xamarin iOS project
    • Quit XCode
    • Relaunch Visual Studio for Mac
    • Open the Info.plist, select Manual Provisioning and press the "Bundle Signing Options..." button to select the signing identity that hopefully imported correctly