276
votes

I am trying to add a new APP ID to prepare for App Store submission and got the following error under the bundle ID I provided.

An App ID with Identifier 'com.domainName.AppName' is not available. Please enter a different string.

What does this mean? I am trying to add a brand new App ID, of course it does not exist.

What am I missing? I do not remember experience the problem last time I create an App ID.

30
Somebody registered AppID you've entered! Choose another one. This is my case.Tony
In my case it is an app identifier that I own and use, yet I still get this message.Caimen
you might have already registered this app idgunas
Removing and adding the account in XCODE >PREFERENCES worked for me.Kunal Gupta
Just upload using latest Xcode version 7.3.1 worked for me like a charm. ThanksRavi

30 Answers

113
votes

update

As of Xcode 8, iOS Team Provision Profile Managed by Xcode are now updated by Xcode automatically and correctly. They are not even listed at the Developer Portal, but generated on-the-flight.

However, the solution proposed below will still work. I've switched to using the automatic provisioning profiles.

tl;dr

Remove INVALID iOS Team Provision Profile Managed by Xcode from Developer Portal and manually create iOS Developer Provision Profile. Download it via Xcode and you should be good to go.

details

Problem:

I started to experience this after Xcode 7.3 (7D175).

What I did before the issue:

  • renewed Certificates (developer & distribution) via Xcode, b/c of their expiration;
  • installed two required certificates (developer & distribution) in my keychain;
  • re-generated Ad Hoc and App Store Provision profiles at Developer portal with new distribution certificate;
  • downloaded locally Ad Hoc and App Store Provision profiles via Xcode;
  • walk the project through the process of Setting up Xcode to automatically manage your provisioning profiles
  • noticed iOS Team Provision Profile Managed by Xcode was INVALID
  • saw Xcode being not able to Build & Run due to INVALID iOS Team Profile.

Tapping "Fix Issue" (the only way, I know to make provision profiles managed by Xcode valid), given the error An App ID with Identifier '<app id>' is not available.

Solution:

I have:

  • manually removed INVALID iOS Team Provision Profile Managed by Xcode from Developer Portal
  • manually created iOS Developer Provision profile
  • Downloaded it via Xcode

Now, I am able to Build & Run app to my devices.

75
votes

TL;DR Xcode is very particular about the name you give your App ID in the member center. Having the correct bundle identifier is not enough. You must use the specific format shown below for Xcode to "see" your App ID.

Update: According to @isaacselement in the comments below, this issue has been resolved in Xcode 7.3.1.


@romrom's solution of deleting the App ID and having Xcode create a new one was a clue. Unfortunately it was a nonstarter for me since my App ID was used by a Store app and therefore could not be deleted.

However, I discovered through some experimentation that I could solve the problem by manually editing the exiting App ID. It turns out that Xcode is really picky about the name of the ID, and not just the bundle ID.

For a typical bundle ID such as com.mycompany.appname, the App ID name must be in this format:

XC com mycompany appname

a name in any other format won't be seen by Xcode.


How to check if you're affected / How to Fix

  1. Log in to the Member Center.
  2. Click on "Certificates, Identifiers & Profiles".
  3. One the left-hand navigation bar, click on "App IDs".
  4. Locate the App ID with your bundle identifier.
  5. If that App ID doesn't have the correct name format (as shown above), click on it then click the Edit button.
  6. Change the name and click Done.
  7. Enjoy the reduction in stress and anger.

P.S. There are some related problems if you're using Xcode 7.3 in which it won't automatically create proper distribution profiles for you, even if you fix the name as I mentioned above. The solution is to downgrade to 7.2.1 or 7.3 Beta or use a tool like fastlane/sigh.

57
votes

I had the same issue and solved by following steps below:

  1. Go to Xcode Preferences > Accounts > Choose your Apple ID account

  2. Tap on View Details

  3. Tap on Download all and then Done

However it was working fine earlier but I don't know the reason why it stopped suddenly. I have gone through the steps above and found it working properly.

49
votes

You may have no app with that same ID, but someone else may. The IDs must be unique globally, and not only within your own apps.

46
votes

Solution for Xcode 7.3.

Go to

Member Center -> Certificates, Identifiers & Profiles -> Provisioning Profiles -> All

Member Center: https://developer.apple.com/membercenter

Find certificate for your App ID, it should be invalid, Edit, Select your iOS Distribution certificate, Generate. Go to:

Xcode -> Preferences -> Accounts -> View Details -> Download all

Invalid certificate

Generate step

22
votes

Version 7.3 (7D175)

The Application ID Name should be same as application bundle identifier, if you application bundle identifier is com.abc.xyz than the application ID name for this bundle ID should be XC com abc xyz

enter image description here

A name in any other format won't be seen by Xcode.

19
votes

I had this problem, too. It turns out that the problem and solution are quite simple. When an Xcode user runs an app on a device using their free personal account, the Bundle ID is registered to the personal account. Then, when the user upgrades to a paid Apple Dev account and tries to create an App ID using that Bundle ID - the backend system thinks that Bundle ID has been taken.

Fill out the form here at this website: https://developer.apple.com/contact/submit/ under the "Certificates, Identifiers, Profilescategory”. I did this and the problem was solved in less than 12 hours. This was Apple’s emailed response: "When you install an app on a device from Xcode using your Personal Team, the Bundle ID is registered to that account. I have deleted the Bundle ID "com.AppVolks.Random-Ruby” so it can now be registered on your paid membership.”

Hope that helps!

18
votes

TARGETS->General->Identity

At first, modify the value of 'Bundle Identifier', so that it is different from the previous value.Then team chose 'None'. Xcode6~Xcode7.3.1

enter image description here

15
votes

Same issue happened with me, it might be that Xcode automatically selected another team name, its solved by choosing my correct team name. Good luck !

12
votes

I got solution for this kind of problem by selecting this option at the time of build export.

enter image description here

Regularly I select second option for build export process but after installing Xcode 7.3 when I try to export build at that time I receive above error. After some sort of forum discussion, I conclude that I need to select last option now to export build.

I hope this information become helpful to other members of forum as well.

10
votes

If you've updated your profiles, and none of the other good answers are working for you, try selecting "Use local signing assets" when it asks you to "select a Development Team to use for provisioning:". I'd made sure everything else was in order, but it still wasn't working. Using local signing assets worked perfectly.

Edit: It looks like Xcode 7.3.1 fixes this issue. "- Fixed an issue that could prevent the export of an ad-hoc build from an archive"

9
votes

I received the same error after a reinstall of the OS on my developer mac and upgrading to xcode 7.3.

The Download all -button was my savior. enter image description here

7
votes

I faced the same problem when i upgraded my Xcode to 7.3 and it showed me the same error in every project. The simplest solution that i found was to just the remove the apple account from Xcode and add it again. enter image description here

To remove just go to Xcode > Preferences > Select the account and click on - sign.

enter image description here and to add click on + sign and add the apple ID corresponding to your app.

After you add the account your problem would be solved.. If in case this still doesn't work . Then perform a next step of regenerating the profile (just click edit and then generate ) and then downloading your provisioning profile again and run it. I bet that would work .

Hope this helps. All the best

7
votes

In my case, the problem was, that the identifier had too few dots.

com.example.foo wasn't accepted

com.example.foo.bar works

7
votes

I had the exact same issue. My problem stemmed from beginning app development under a free developer account and then switching app development to subscription (paid) developer account. The original free developer account already had registered the bundle identifier that your paid developer account is trying to use.

You can verify that this is the problem by going to Xcode -> Preferences -> Accounts -> and then look under Team. If you see both your free (personal) team and your new paid team both listed then your probably having the same issue I had. The two teams are interfering with each other and you need to remove the free (personal) team now that you want to use your paid developer account.

Unfortunately, the only solution is to call apple development support at 1-800-633-2152 (US & Canada) and have them deactivate the free (personal) account from the app so that your paid developer account can register the bundle identifier.

6
votes

I realize this couldn't have been the cause of the original problem, because Xcode 6 wasn't available then, but I'll leave the answer anyway in case it helps someone.

Xcode 6 now registers your bundle ID for you automatically, so you don't have to. It'll be somewhere in the list on a line starting with "Xcode iOS App ID".

4
votes

When I experienced the "An app with identifier XXX is not available" error in trying to switch on iCloud support in Xcode's Capabilities tab, I found that I had to:

  • Give my app an explicit custom bundle id,

  • Register my app manually at the Member Center, explicitly requesting iCloud support entitlements there.

After that, switching on iCloud support in Xcode worked. So, I suggest trying the same thing. Sometimes, things work better when you do them at the Member Center.

4
votes

For me, the problem happened because I first created a new AppID and then created a new app with the bundle identifier of the AppID in iTunes Connect, and then tried to connect my development app with the AppID from within Xcode.

In this case, Xcode assumed that the AppID has already been registered by someone.

To resolve the issue, you first change the bundle identifier in your app (in iTunes Connect's MyApp section) to some temporary values (or if you don't have any, create a dummy AppID such as com.yourcompany.testapp), delete the AppID in Certificates, Identifiers & Profiles page, and try connecting it from within Xcode, not from within Certificates, Identifiers & Profiles, by pushing the fixing issue button in Xcode.

4
votes

Update to Xcode 7.3.1, they have fixed this bug.

4
votes

In my case it wasn't letting me because I set bundle id in xcode project BEFORE creating online, so I changed temporarily in xcode, created online then changed back to normal in xcode.

3
votes

I just had this problem. This is my configuration:

I've got an iPhone Developer Certificate in a developer account (Apple Store) and an Enterprise account. These 2 certificates have the same name in my keychain: iPhone Developer : firstName lastName

I assume Xcode doesn't know which one to take and pick the wrong one.

I fix it by selecting the good one in Xcode > Build Settings > Code Signing. It was previously set to iOS Developer.

3
votes

I had same problem and the quick fix is:

  1. Remove bundle id from General tab of Xcode
  2. Go to info.plist file and put bundle id for the Bundle identifier field.

Clean and run. That's it.

3
votes

Purge or Fix all of the invalid and expired provisioning profiles. Even though they appeared to be unrelated.

We encountered this when we attempted to recompile an app that was previously working fine. Nothing worked until we cleaned up the provisioning profiles.

Then click on "Download All" under the "Provisioning Profiles" area of the Apple Id account for the appropriate team.

Possibly related to XCode 7.3

3
votes

If you encountered this error while making an ad hoc deployment, this is now fixed in the XCode 7.3.1 release (May 3th, 2016) : https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

Changelog 7.3.1 :

  • Git updated to version 2.7.4 to improve security
  • Fixed an issue where turning off a capability in the Xcode editor could leave the entitlement enabled in the app bundle
  • Fixed an issue that could prevent the export of an ad-hoc build from an archive
  • Fixed a crash when importing localizations
3
votes

enter image description here

I had the same issue on submission process and solved by Selecting Appstore provision instead of AdHoc. Simple!!

Hope this helps. All the best :)

3
votes

This is for those who bump into the odd case I did, you CANNOT use the keyword test in the bundle id.

We were needing to test sharing data through the app group feature and the companion app wasn't developed yet so we simply changed the bundle identifier to test.APP_NAME instead of company.APP_NAME. We set up everything in iTunes Connect and nothing worked right. We then swapped the name to beta.APP_NAME and Xcode was able to manage the app id correctly again.

Normally to fix this issue, verify your provisioning profiles and App Id's have the correct settings, and if your still having trouble to to Xcode -> Preferences -> Accounts -> View Details -> Download All and you should be good.

Hope that helps.

2
votes

This may only apply to the latest version of Xcode (7.3 D175), recently release:

Press the Try Again Button

After several hours of fiddling with Xcode build settings and starting the Certificate/App ID/Provisioning Profile dance from scratch, I ended up at the same place, same error message, App ID not available.

In frustration, I pressed the Try Again button thinking it was futile. But it worked.

2
votes

I had this same issue in Xcode 7.3. To solve it I performed the following:

  1. Deleted the provisioning profile on the developer portal website.
  2. Created a new development provisioning profile manually on the portal website.
  3. Added new profile in Xcode under Preferences -> Accounts -> Apple ID -> View Details. Attempting to just click the download button beside the new profile kept giving me an error. It was only when I clicked "download all" at the bottom that it finally downloaded and fixed everything.
2
votes

I had Distribution Provisioning for my Apple ID for the App Store only and still gave me that error: An App ID with Identifier '' is not available. Please enter a different string

I recently updated to Xcode 7.3 and probably that caused the issue. So what I did was creating iOS Development Provisioning by selecting all devices that I want to test in iOS Dev. Center (Member Center). Then Opened Xcode -> Preferences and under my account downloaded the newly created Development Provisioning for that App ID. When did that, the error disappeared.

2
votes

This seems to be a bit of a generic message. I'm sure many of the answers are correct. For me it was a mismatch between the entitlements and settings for the app in the member portal. My solution was this:

  1. Verify your bundle id matches the portal
  2. Verify your app in the portal has the same entitlements enabled as your project's entitlements file
  3. Verify your provisioning profile is valid and edit/regen if not
  4. In Xcode properties > Accounts double click on the account and tap the "download all" button
  5. Clean
  6. Try again