Xcode 6: how to set a custom bundle identifier?

joelparkerhenderson picture joelparkerhenderson · Jan 23, 2015 · Viewed 17.1k times · Source

In Xcode 6, I need to set a custom bundle identifier for my app store target.

I'm trying this:

  1. I tap my project in Xcode upper left.

  2. I see the project settings center pane, "General" tab, "Identity" section.

  3. I see the "Bundle Identifier" field and I click to edit it.

  4. The text changes to a mix of black editable text and gray uneditable text.

How do I edit the bundle identifier?

Answer

joelparkerhenderson picture joelparkerhenderson · Jan 23, 2015

(Found the answer - posting here to help others, and if people have comments)

The Xcode default autogenerates the bundle identifier based on the product name.

To edit a target's bundle identifier:

  1. Tap the icon "Show projects and targets list" in project settings center pane upper left.

  2. Tap the target.

  3. Tap the "Info" tab, and open the "Custom iOS Target Properties" drop arrow.

  4. You see the Key "Bundle Name" set as "$(PRODUCT_NAME)", and the Key "Bundle identifer" set as "com.example.$(PRODUCT_NAME:rfc1034identifier)". Edit these as you wish. Then choose the "Product > Clean" menu item.

enter image description here