I am trying to deploy an iOS application to a test device with Xcode 9.1. but I get the following error:
The app ID "com.myDomain.myApp" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
I have 2 Apple IDs registered with Xcode, and I made a mistake in choosing "Automatically manage my signature" with the wrong development team associated with the wrong Apple ID. Now I want to change it, but I do not know how to do it.
Here's what the signing of the goal section for the development team looks like, which I chose by mistake:

Here's what the goal signature section for the development team looks like, which I would like to use instead:

Apple App, , , . , .
, " ", .