Cannot create an App ID with matching Bundle ID in Xcode project for first release using Xcode 8.0

6.9k views Asked by At

I am trying to create an App ID for my first release. I have a new company developer account. I get the error message 'An App ID with Identifier '' is not available. Please enter a different string' when trying to create the App ID.

This happens when:

I type the name of my app in the App ID Description field and I type the matching Bundle ID from my Xcode project (com.MyCompany.MyProductName) in the App ID Suffix field but I get the error and cannot continue.

However, If I type in, say, 'com.MyCompany.MyProductNameVersion1', which is different from the Bundle ID in my Xcode project, then I don't get the error and am able to continue??

To my knowledge, I need to enter the same Bundle ID as in my Xcode project but its not working as advised.

Been stuck on this for a few days, reading and trying all I possibly can, I cannot find a solution and cannot proceed.

Any help is appreciated

UPDATE: In the Accounts section of Xcode > Preferences, I have two entries under 'Team' : the first is my name and (Personal Team) and under 'Role' it says 'User'... the second is my company name and under 'Role' it says 'Agent'.. I also thought this screenshot may be useful. It shows the signing section of the General tab when the Team field is set to my company name: enter image description here

3

There are 3 answers

0
dan10 On BEST ANSWER

I managed to get this sorted. @Beninho85 pointed me in the right direction but the info in this thread was the answer I needed: How to manage Personal Team info on Apple Developer website? I had a two teams in my developer account. One was a previous Personal Team before I joined Apple Developer as a 'company'. This Personal Team had created App ID's for development provisioning profiles which were conflicting with identically named App ID's I wanted to create for distribution profiles using my company name. Identically named App ID's cannot be generated within the portal. Only Apple can delete personal Team accounts already registered with them. I had them delete the personal team and App ID's.

3
Beninho85 On

You have the answer in your question. The bundleId must be unique for each application. So if you created this bundleId on another developer account, you can't use it anymore. Delete the previous one or create a new one.

0
bdev On

If you're allowing Xcode to "Automatically" manage signing, and you don't see your App ID on the Certificates, Identifiers & Profiles web portal, try enabling any capability (i.e. the Siri capability) which will force Xcode to regenerate a provisioning profile (and register the App ID with iTC).

Verify that a new provisioning profile has been created by going to Targets > [Target Name] > General. Next to Provisioning Profile, tap the information button and verify that the Created date is today. Once you see your App ID registered in the portal, you can disable the previously enabled capability.