How to change application package id in Xcode 5?

Xcode 5 will not let me change the package identifier. The part of the application name after com.mycompany. highlighted in gray.

I created a package identifier in ITC, which is a little different, and I want to use this new package identifier.

Should I create a new Xcode project with the correct ID?

+61
iphone xcode xcode5
Oct 21 '13 at 17:52
source share
6 answers

This is actually pretty simple:

  • Choose a target
  • Select the "info" tab (you can do the same by finding the plist file in the project)
  • Find the key "Bundle Identifier", the value at your end should be com.mycompany.${PRODUCT_NAME:rfc1034identifier} .

If you want to change the gray box, just replace "com.mycompany" with what you want. another field is the “Product Name” (which is dynamically read from the corresponding key), you can change it by setting the key “Product Name” in “Build Settings”. You can also do it pretty ugly and change the whole bundle identifier to whatever you want, but I do not recommend it, because if you add more goals, it will be static and more difficult to maintain.

+68
Oct. 21 '13 at 19:10
source share
  • Select your goal in the Goals section.
  • Click the Build Settings tab.
  • Scroll down to Packaging .
  • Change the Product Name to the one you need.

Pic

+57
May 17 '14 at 14:56
source share

In Xcode 5.1.1, you can do this by simply renaming your target. Double-click the name of the target to change it.

+18
May 09 '14 at
source share

In your Info.plist projects (or on the Information tab in the project settings, which is the same thing), change ${PRODUCT_NAME:rfc1034identifier} to the desired name. After that, he will not be gray-haired.

+14
Oct 21 '13 at 18:41
source share

I also had to do this for my project, and I found it easy to do in Xcode 5.1.1 by simply renaming the project name in Navigator and letting Xcode find all the lines that you need to change automatically. Just make sure you first register or create a snapshot of your project.

0
May 31 '14 at 1:41
source share

Your package ID is based on PRODUCT_NAME.

By default, PRODUCT_NAME is based on TARGET_NAME, which is quite difficult to change (XCode6 at the time of writing). Therefore, do not be afraid to name another name here.

0
Jul 23 '15 at 6:12
source share



All Articles