Fix: An App ID with Identifier Is Not Available in Xcode

Fix: An App ID with Identifier Is Not Available in Xcode

Written by

in

Quick answer: This error occurs because the bundle identifier is already registered by another team, tied to a personal Apple ID, or out of sync in your Apple Developer account. Check Certificates, Identifiers & Profiles on developer.apple.com to verify ownership, ensure you selected the correct development team in Xcode, or modify your bundle identifier to a unique string.

Why this happens

When creating or registering an App ID in Xcode or the Apple Developer portal, you may encounter the error:

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

This failure occurs primarily because Apple enforces strict, global uniqueness across all developer accounts for explicit Bundle Identifiers. If an identifier has ever been registered by another developer account, an enterprise program, or even your own personal Apple ID during local testing on a physical device, Apple’s provisioning database reserves that identifier indefinitely. Even if the associated app was never submitted to App Store Connect, the bundle identifier string remains locked to the team that first claimed it.

A secondary cause stems from state desynchronization between Xcode’s automatic code signing mechanism and the Apple Developer portal. When Xcode’s “Automatically manage signing” feature attempts to generate a new development provisioning profile, it checks whether an App ID already exists. If an existing profile becomes marked as invalid or expired on the portal, or if local provisioning caches contain conflicting metadata, Xcode may attempt to create a duplicate App ID with the same identifier rather than linking against the existing one, causing the developer portal API to reject the request.

Finally, selecting the wrong development team in the project settings can trigger this error. If you work across multiple organizations or have both a personal team and a paid Apple Developer Program team linked to your Apple ID, Xcode might attempt to claim the identifier under the wrong entity where it is not available.

How to fix it

1. Verify and Select the Correct Team in Xcode

When multiple development teams share an Apple ID, Xcode defaults to assigning an arbitrary team or your free Personal Team when setting up a new target. An App ID created under your paid organization will be rejected if Xcode tries to register it under your personal team.

  1. In Xcode, open the Project Navigator (Cmd + 1) and select your top-level project file.
  2. Select your application target under the Targets list.
  3. Navigate to the Signing & Capabilities tab.
  4. Under the Signing section, verify the Team dropdown.
  5. If it lists Your Name (Personal Team), switch it to your registered Apple Developer Program organization team.

Once the proper team is selected, Xcode re-queries the developer portal and attempts to associate the target with the pre-existing App ID instead of attempting to create a new one.

2. Check for Pre-Existing App IDs in the Developer Portal

If you or a teammate previously configured the identifier, it might already exist in your portal under a slightly different configuration or managed state.

  1. Open a browser and sign in to the Apple Developer Member Center.
  2. Navigate to Certificates, Identifiers & Profiles > Identifiers.
  3. In the dropdown filter on the right, ensure App IDs is selected.
  4. Look through the list for your explicit bundle identifier (e.g., com.domainName.AppName).

If the App ID is present:
– Click on the identifier to review its assigned capabilities. Ensure no conflicting services are enabled that your local target lacks.
– Save the App ID without changes to force the portal to refresh its timestamp.
– Return to Xcode, disable Automatically manage signing, wait two seconds, and re-check Automatically manage signing to force a catalog sync.

If the App ID does not appear in your portal list, the identifier has been registered by another Apple Developer account or claimed by a free provisioning profile on another machine.

3. Clear Stale Local Provisioning Profiles and Cached Accounts

Corrupted local signing caches cause Xcode to issue repetitive registration requests rather than referencing valid certificates and profiles.

First, remove cached provisioning profiles from your local machine using Terminal:

rm -rf ~/Library/MobileDevice/Provisioning\ Profiles/*

Next, refresh your developer account credentials inside Xcode:

  1. Go to Xcode > Settings (or Preferences on older macOS versions) > Accounts.
  2. Select your Apple ID in the left sidebar.
  3. In the bottom-right corner, click Download Manual Profiles.
  4. If your credentials display an error, click the minus icon (-) to remove the account, then click the plus icon (+) to sign in again.
  5. Quit and reopen Xcode, open your project, and build again.

4. Create a Unique Bundle Identifier

If the bundle identifier was registered under a personal team that cannot be recovered, or if another organization claimed the string first, you must change your target’s bundle identifier to a unique reverse-DNS string.

  1. In Xcode, navigate to your target’s Signing & Capabilities tab.
  2. In the Bundle Identifier field, update the value to incorporate a unique company prefix or project designation:
// Instead of a generic or taken identifier:
com.company.app

// Use an explicit, fully-qualified domain specific to your organization:
com.yourcompanydomain.appname
  1. Press Return to commit the change. Xcode will automatically contact the developer portal and register the new, unique App ID.

5. Manually Create the App ID and Provisioning Profile

If Xcode’s automated workflow continues to fail despite owning the identifier, bypass automatic management by creating the App ID and development profile manually.

  1. In the Apple Developer portal, go to Identifiers > click the + (plus) button.
  2. Select App IDs > App and click Continue.
  3. In the Description field, enter a recognizable name.
  4. Select Explicit Bundle ID and paste your exact identifier.
  5. Select required capabilities, click Continue, and then click Register.
  6. Go to Profiles > click the + button.
  7. Select iOS App Development (or your platform equivalent), select the App ID you just created, select your development certificates and test devices, and click Generate.
  8. Download the profile and double-click it to install it into Xcode.
  9. In Xcode’s Signing & Capabilities tab, uncheck Automatically manage signing, then select the newly downloaded profile under Provisioning Profile.

How to prevent it

  • Reserve your explicit bundle identifier in the Apple Developer Member Center before starting development, especially prior to assigning client projects.
  • Avoid using generic identifiers like com.example.app or testing apps on physical devices using a Personal Team with the production bundle ID.
  • Standardize your organization’s reverse-domain naming convention (e.g., com.organization.division.appname) to minimize collision risks.
  • Verify target team assignments immediately when cloning repositories or creating new targets in multi-account environments.

FAQ

Can I delete an App ID from another account to free up the identifier?

You can only delete an App ID from an account you have administrative access to, provided that the App ID has never been linked to an active app record in App Store Connect. Once an app is associated with an App ID in App Store Connect, that identifier is permanently locked to that developer team and cannot be released or deleted.

Why does this error occur when using a personal team for testing?

When you run an app on a physical device using an unpaid Apple ID, Xcode automatically registers a free provisioning profile and reserves that explicit bundle identifier on Apple’s servers. That identifier becomes bound to your personal team, preventing any other developer account—including your paid company account—from claiming it until the bundle ID is modified.

Does deleting local derived data resolve this error?

Deleting DerivedData resolves cases where Xcode caches an obsolete build setting or failed signing response, but it will not fix the issue if the bundle identifier is genuinely registered under another Apple Developer account. If the App ID is already confirmed in your portal, clearing DerivedData via rm -rf ~/Library/Developer/Xcode/DerivedData is a sensible step to force Xcode to query fresh metadata.

Sources & credits

Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.