Xcode not showing a new team I've been added to

I have a long-standing developer account and I've recently been added to a new team. That new team is showing up and useable in the App Store Connect account on that website. But Xcode will not show that new team. Since it won't then I can't get profiles, etc for that new team to build with either.

Xcode is not showing this in the Account>Apple ID screen in Xcode Settings. My individual account and a separate team is showing there under the "Team" listing, but the new team is not showing.

How do I convince Xcode to update it's knowledge of this?

I also sent an email to Apple dev support with Xcode as the tag with the above text. After first trying restarting Xcode, deleting and reading my account, etc, etc, then just throwing up my hands and doing something completely different for some hours I come back this evening and find that it's magically working. Xcode sees the new team name, profiles, etc, etc.

I'm really glad and thankful that it's working. But the lack of visibility to the problem and lack of any obvious solution except waiting a magic amount of time (and perhaps sending an email) is a problem and is a single point of failure in the development process. Most of the time this adding a new team thing just works. But when it does fail, there's no way to fix it or see what's wrong.

Xcode not showing a new team I've been added to
 
 
Q