title: The app ID cannot be registered to your development team
body: <p>I am trying to deploy an iOS app to a test device with Xcode 9.1. but I get the following error:</p>
  
  <pre><code>The app ID "com.myDomain.myApp" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
  </code></pre>
  
  <p>I have 2 Apple IDs registered in Xcode and I made the mistake of choosing "Automatically manage signing" with the wrong development team, the one associated to the wrong Apple Id. Now I want to change it but I don't know how.</p>
  
  <p>This is what the signing section of the target looks like for the development team I chose by mistake:</p>
  
  <p><a href="https://i.stack.imgur.com/t40Pd.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/t40Pd.jpg" alt="enter image description here"></a></p>
  
  <p>This is what the signing section of the target looks like for the development team I would like to use instead:</p>
  
  <p><a href="https://i.stack.imgur.com/N2ZGF.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/N2ZGF.jpg" alt="enter image description here"></a></p>
  
  <p>I have gone to the Apple Developer portal and couldn't find the app under App IDs, so I don't know how I can remove it to start from scratch. I have removed the signing certificate from the local keychain but that is not enough.</p>
  
  <p>Note that I still would like to use "Automatically manage signing" and I would still like to keep the bundle identifier.</p>