PC パソコン

How to Fix “Failed to Register Bundle Identifier” in Xcode

When you try to build or run an iOS app with Xcode, the Signing & Capabilities tab may report:

Failed to register bundle identifier

You may also see a more detailed message such as:

The app identifier "com.example.myapp" cannot be registered to your development team because it is not available.

This error means that Xcode could not register the target’s current Bundle Identifier as an App ID for the selected Apple Developer team.

Common causes include using a Bundle Identifier that is already registered, selecting the wrong development team, lacking permission to register App IDs, cloning a project that still uses the original developer’s identifier, or having different Bundle Identifier values in Build Settings or configuration files.

What does “Failed to register bundle identifier” mean?

Every app target has a Bundle Identifier that distinguishes it from other apps.

A typical value looks like:

com.example.myapp

When automatic signing is enabled, Xcode can create or manage signing resources associated with that identifier.

If Xcode cannot register the identifier for the selected development team, it reports “Failed to register bundle identifier.”

For an explicit App ID, the Bundle ID registered in the Apple Developer account should match the Bundle Identifier configured for the Xcode target.

Bundle Identifier vs. App ID

These terms are closely related but are not exactly the same thing.

Bundle Identifier

This is the identifier configured in the Xcode target.

com.example.myapp

App ID

An App ID is registered with the Apple Developer team and is used by signing and provisioning services to identify an app.

For an explicit App ID, its Bundle ID should match the app target’s Bundle Identifier.

Common causes

1. The Bundle Identifier is already in use

This is one of the most common causes.

A sample project may use:

com.example.app

If that identifier has already been registered by another developer or team, your team cannot simply claim it.

This commonly happens with projects downloaded from GitHub, tutorials, and sample code.

2. The identifier belongs to another development team

If you belong to several Apple Developer teams, the identifier may already be registered under a different team.

Selecting another Team in Xcode can cause Xcode to attempt a new registration and fail.

3. The project still uses a sample Bundle Identifier

Tutorial and template projects often contain generic identifiers such as:

com.example.MyApp com.company.app com.test.app

These identifiers are not guaranteed to be available.

4. The wrong development team is selected

If Signing & Capabilities points to the wrong Team, Xcode may try to register the App ID under an organization that does not own or cannot use it.

5. Your account cannot register App IDs

In an organization, your role may not have permission to create new App IDs.

Apple also provides Automatic Signing Controls that let authorized team administrators prevent Developer-role members from registering new App IDs or modifying existing ones.

6. The Bundle Identifier is malformed

Bundle Identifiers are normally written using reverse-domain notation.

com.yourcompany.myapp

Spaces or invalid characters can interfere with registration and signing.

7. An existing App ID does not match the Xcode target

If an App ID has already been created in your Apple Developer account, make sure its Bundle ID matches the Bundle Identifier Xcode is using.

8. An extension uses a conflicting identifier

Widgets, Notification Service Extensions, Share Extensions, and other app extensions need their own Bundle Identifiers.

For example:

Main app:

com.example.myapp

Widget:

com.example.myapp.widget

Using the main application’s identifier for multiple targets can cause registration and signing problems.

9. App ID capabilities have changed

If the project uses capabilities such as Push Notifications, App Groups, iCloud, or Sign in with Apple, the App ID configuration also matters.

Changing capabilities for an App ID can invalidate provisioning profiles that were created with the previous configuration.

Typical situations where the error appears

  • Running a new Xcode project on a device for the first time
  • Cloning a project from GitHub
  • Using code from a tutorial
  • Switching to a company Apple Developer team
  • Switching between personal and organization teams
  • Changing the Bundle Identifier
  • Adding a Widget or app extension
  • Changing the Apple Account used by Xcode
  • Enabling automatic signing
  • Allowing Xcode to create a new App ID

What to check first

1. Check the Bundle Identifier

In Xcode, open:

Project → TARGETS → Your App → Signing & Capabilities

Check the Bundle Identifier.

com.example.myapp

If this is a cloned or downloaded project, replace the original developer’s identifier with a unique identifier you control.

2. Check the Team

On the same Signing & Capabilities screen, verify the selected Team.

If your Apple Account belongs to multiple teams, make sure the intended team is selected.

3. Check your Apple Account

Open:

Xcode → Settings → Accounts

Verify that the Apple Account associated with the development team is present.

Solution 1: Change the Bundle Identifier to a unique value

This is the simplest fix for many new projects and samples.

If your project currently uses:

com.example.myapp

replace it with an identifier that is specific to you or your organization.

com.yourcompany.myapp

For a personal project, use a sufficiently unique identifier, for example:

com.yourname.uniqueproject

Then return to Signing & Capabilities and allow Xcode to configure signing again.

Important: Do not casually change the Bundle Identifier of an app that has already been distributed through the App Store. It is part of the app’s identity.

Solution 2: Select the correct development team

If you belong to multiple teams:

  1. Open Signing & Capabilities.
  2. Check the Team field.
  3. Select the team that owns or should own the App ID.
  4. Build again.

Make sure you are not attempting to register an identifier under a different team from the one where it was originally created.

Solution 3: Enable Automatically manage signing

If your project does not require manual signing, enable automatic signing.

  1. Select the app target.
  2. Open Signing & Capabilities.
  3. Enable Automatically manage signing.
  4. Select the correct Team.
  5. Build again.

Xcode can then manage the App ID and provisioning resources required for development.

Note: Automatic signing cannot make an unavailable Bundle Identifier available. If the identifier itself conflicts with another registration, you still need to change it or use the correct team.

Solution 4: Check the App ID in the Apple Developer account

If you already created the App ID manually, open Certificates, Identifiers & Profiles and inspect Identifiers.

Xcode:

com.example.myapp

Apple Developer account:

com.example.myapp

For an explicit App ID, verify that these values match.

Solution 5: Register the App ID manually

If automatic registration is failing and your workflow requires a specific App ID, you can register it through the Apple Developer account if you have sufficient permissions.

Typical workflow

  1. Open Certificates, Identifiers & Profiles.
  2. Select Identifiers.
  3. Click the add button.
  4. Select App IDs.
  5. Select App.
  6. Enter a description.
  7. Select Explicit App ID.
  8. Enter the same Bundle ID used by Xcode.
  9. Enable the required capabilities.
  10. Register the App ID.

Important: If your organization does not allow your role to create App IDs, ask an Account Holder or Admin to create or configure the identifier.

Solution 6: Check organization permissions

If the problem occurs only when using a company or organization team, ask an administrator to check Apple Developer account permissions and Automatic Signing Controls.

Organizations can restrict Developer-role members from operations such as:

  • Registering new App IDs
  • Modifying existing App IDs
  • Registering test devices

If those controls are enabled, repeatedly changing Xcode settings on your Mac will not grant the missing server-side permission.

Solution 7: Check every extension Bundle Identifier

If your app contains extensions, inspect each target separately.

A common structure is:

Main app:

com.example.myapp

Widget:

com.example.myapp.widget

Notification Service Extension:

com.example.myapp.notification

Do not assign the exact same Bundle Identifier to multiple independent targets.

Solution 8: Inspect PRODUCT_BUNDLE_IDENTIFIER

The Bundle Identifier shown in the Xcode UI may be derived from Build Settings or a configuration file.

Check the effective value from Terminal:

xcodebuild -showBuildSettings | grep PRODUCT_BUNDLE_IDENTIFIER

Typical output:

PRODUCT_BUNDLE_IDENTIFIER = com.example.myapp

If this is not the identifier you expected, inspect Build Settings and configuration files.

Solution 9: Compare Debug and Release

Projects sometimes use different Bundle Identifiers for different build configurations.

Compare them with:

xcodebuild -showBuildSettings -configuration Debug | grep PRODUCT_BUNDLE_IDENTIFIER

xcodebuild -showBuildSettings -configuration Release | grep PRODUCT_BUNDLE_IDENTIFIER

An unexpected Release identifier can explain why normal development builds succeed while Archive or distribution workflows fail.

Solution 10: Check .xcconfig files

If the project uses .xcconfig files, the Bundle Identifier may be defined there.

PRODUCT_BUNDLE_IDENTIFIER = com.example.myapp

Depending on the project structure, changing the value only in Signing & Capabilities may not be enough if another configuration overrides it.

Solution 11: Refresh old provisioning profiles

After changing a Bundle Identifier, stale provisioning profiles can cause additional signing errors.

Provisioning profiles are commonly stored under:

~/Library/MobileDevice/Provisioning Profiles/

List them with:

ls ~/Library/MobileDevice/Provisioning\ Profiles/

Back up important profiles before removing obsolete ones, then allow automatic signing to obtain the appropriate profile again.

Solution 12: Verify capabilities

If App ID registration succeeds but signing errors continue after enabling Push Notifications, App Groups, iCloud, or another capability, verify that the App ID is configured for the same capabilities.

Changing an App ID’s capabilities can invalidate provisioning profiles associated with the previous configuration, so they may need to be regenerated.

If you also see “identifier is not available”

A common related message is:

The app identifier "com.example.myapp" cannot be registered to your development team because it is not available.

For a new project, first assume that the identifier may already be registered.

Change a generic sample identifier to something unique.

Before:

com.example.app

After:

com.yourdomain.projectname

If you cloned the project from GitHub

A GitHub project may still contain the original author’s signing configuration and Bundle Identifier.

If you build it unchanged, Xcode may attempt to register an identifier that belongs to the original developer.

Review and update:

  • Bundle Identifier
  • Development Team
  • App Groups if applicable
  • URL schemes
  • Associated Domains
  • Push Notification configuration

If the error occurs in CI

If a CI environment reports “Failed to register bundle identifier,” automatic signing may be attempting to create an App ID during the build.

For production CI systems, it is often easier to preconfigure the required App ID and signing assets so builds do not depend on creating new identifiers dynamically.

Check the actual Bundle Identifier used by the CI build:

xcodebuild -showBuildSettings \ -scheme MyApp \ -configuration Release \ | grep PRODUCT_BUNDLE_IDENTIFIER

If the CI value differs from your local build, inspect environment variables, .xcconfig files, and build-script overrides.

If the app already exists in App Store Connect

For an existing distributed app, do not solve this error by inventing a new Bundle Identifier.

Use the App ID associated with the existing application.

Apple’s App Store Connect provisioning workflow also requires selecting an App ID that matches the Bundle ID used by the app.

What you should not do

Do not change the Bundle Identifier of an existing production app solely to hide a signing error.

Changing it is usually fine for an unpublished tutorial or sample project, but it is a fundamental identifier for a distributed application.

Also remember that if the real problem is the selected Team or account permissions, repeatedly generating random Bundle Identifiers will not fix the underlying issue.

Fast troubleshooting checklist

  1. Check the Bundle Identifier in Signing & Capabilities.
  2. Replace a generic sample identifier with a unique one.
  3. Select the correct Development Team.
  4. Enable automatic signing if appropriate.
  5. Check whether the App ID already exists in the Apple Developer account.
  6. Verify permission to register App IDs in an organization.
  7. Check Bundle Identifiers for every extension target.
  8. Inspect the effective PRODUCT_BUNDLE_IDENTIFIER value.
  9. Compare Debug and Release configurations.
  10. Check .xcconfig overrides.

Summary

The Xcode error “Failed to register bundle identifier” means that Xcode could not register the target’s Bundle Identifier as an App ID for the selected Apple Developer team.

For new and cloned projects, the most common fix is to replace a generic or already-used Bundle Identifier with a unique identifier that belongs to you or your organization.

If that does not solve the problem, verify the selected Team, your Apple Account, App ID permissions, existing identifiers in the Apple Developer account, extension targets, and the effective PRODUCT_BUNDLE_IDENTIFIER value.

In organization accounts, also consider whether Automatic Signing Controls prevent Developer-role members from registering new App IDs.