How do I change an account for Xcode?

I have a new Mac. My files from an earlier Mac were transferred over. When I open a project, it says, "No matching provisioning profiles found" and a Fix issue button. I click on the button. The top of three popups says, "Failed to sign in with account "***". You must reauthenticate before using this account. Password:"


I need to put in an account with a new account (Apple ID) name than that shown. Under Xcode > Preferences, I created the new (existing) account. However, I don't know how to make Xcode recognize it as the only valid account. The other account is still listed. (An earlier misunderstanding of a step caused a confusion, which caused me to make yet another Apple ID to get in.)


How does Xcode allow me to designate which Apple ID/account to use?

Which version Xcode?

How do I change an account for Xcode?
 
 
Q