Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6: how to set a custom bundle identifier?

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?

like image 237
joelparkerhenderson Avatar asked Jan 23 '15 21:01

joelparkerhenderson


People also ask

Can we change the bundle identifier in Xcode?

Change the Bundle ID Choose your project from the left side, then your app target under TARGETS, select the General tab and rename the Bundle Identifier.

How do you name a bundle identifier?

To create a unique bundle identifier, you append the name of the application to the reversed domain, for example, com. cocoacasts. scribbles . Remember that you choose the bundle identifier.


1 Answers

(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

like image 85
joelparkerhenderson Avatar answered Nov 15 '22 06:11

joelparkerhenderson