28
votes

I am trying to deploy an iOS app 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 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.

This is what the signing section of the target looks like for the development team I chose by mistake:

enter image description here

This is what the signing section of the target looks like for the development team I would like to use instead:

enter image description here

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.

Note that I still would like to use "Automatically manage signing" and I would still like to keep the bundle identifier.

3
It's telling you to change the bundle identifier though (eg."com.myDomain.myApp"), which is in use by something or someone else. - l'L'l
I don't want to change the bundle id, I want to undo the provisioning done on the wrong dev team, so that I can redo it on the right dev team, with the same bundle id, as stated in the question. - atineoSE
I would like to still use "automatic manage signing", as stated in the question. There must be a way to invalidate the wrong provisioning and that is what I am asking about. - atineoSE
@oluckyman no, it looks like contacting support is the only option so far according to solutions posted here: stackoverflow.com/questions/34552441/… - atineoSE
@atineoSE so you want to have an app Id associated with your personal team and a paid/production account team? I can understand why that is not possible. I have a similar problem. My app Id is associated with my personal team and not the paid/production team. - gwest7

3 Answers

28
votes

I had to reuse the Bundle Identifier, because we were replacing an old app. I spent three hours trying everything I could find on the internet.

In the end I changed the bundle identifier, pressed all the buttons, then changed it back to the original bundle identifier and everything worked.

This is not the first time that I spent hours wasting in Xcode/ iOS Dev while in the end I just needed to do some voodoo ritual.

7
votes

Change the app Bundle Identifier and make sure its unique.
For example: com.companyname.appname to com.companyname.appname123

0
votes

Here is what worked in my case (I needed to keep the same bundle ID as the app exists on the AppStore, clearing everything and changing the bundle ID to something different, then back to original did not work).

  • Selecting 'Debug' in signing and capabilities for the target, and set the correct team. For some reason the selected team was the old one there even tho it was updated in 'all'