Did you want to change the account in Xcode ? Menu Xcode / Preferences / Accounts
Here you can add / delete accounts (Apple ID)
I thinks Xcode will import automatically the certificats linked to the new account into your keychain. Just use it to sign the App.