Application ID cannot be registered with your development team

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:

enter image description here

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

enter image description here

Apple App, , , . , .

, " ", .

+20
3

, . , , .

, , , .

, Xcode/iOS Dev, .

+7

, .
: com.companyname.appname com.companyname.appname123

+3

Is there something that might require a specific package identifier or part of a package identifier (possibly an application group)? If so, Apple would have had to fix it a long time ago - as it basically makes it troublesome / confusing for anyone trying to download a (someone else's) project from github and mess with it.

0
source

All Articles