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:

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

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.
Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice.
3. How To Fix Xcode Failed To Create Provisioning Profile Error. To fix this error is very easy, just connect your real iOS device such as iPhone to the Mac computer with a USB line, follow the popup screen on the iPhone, then you can select your iOS device in the Set the active scheme drop down list.
Visiting Apple's Developer WebsiteOpen a browser and visit Apple's developer website. Click Account and sign in with the Apple ID that's linked to your developer account. On the left, select Certificates, IDs & Profiles. From the menu on the left, choose App IDs and look for the App ID Xcode created for us.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With