Unable to change package ID in project, gray

I have a problem with package identifiers. In the "Summary" section of my project in Xcode and in the "Identifiers" section, I cannot change the name of my package identifier because it is grayed out. For example, my project name is "My application." In the identifier text box in the Summary, this is My Application and is grayed out. However, my package id in my provisioning profile is "com.mycompany.myapp". I would like to change my package id in my project to this, but I can't seem to. Any ideas why this is gray? Thank!

+42
ios xcode identifier bundle
Aug 13 '12 at 7:16
source share
8 answers

Not sure why this is happening to you, but try modifying the info.plist file.

+53
Aug 13 2018-12-12T00:
source share
— -

If someone else comes across this, this is most likely because you have a product name variable, for example. $ {PRODUCT_NAME: rfc1034identifier}, added to the end of your package identifier under Target (your application)> Information (information. PLIST). Try to remove this.

+81
Oct 16
source share
  • Go to info.plist file
  • Go to the key-value pairs of the Bundle ID
  • Remove .${PRODUCT_NAME:rfc1034identifier} from the value and save the file

Your package ID has been changed as needed.

+9
May 27 '14 at 10:48
source share

You might want to change the value of PRODUCT_NAME instead of directly changing the package ID. This can be done through the XCODE interface (and it should have an additional advantage, which may not cause problems with certificates and code signing later), which can be a real bear for the solution):

stack overflow

+5
Jan 12 '14 at 20:18
source share

If you want to change the name of the product, and not delete it; You can set it for your purpose by following these steps:

  • Open Target in Xcode
  • Go to the "Build Settings" tab
  • Scroll down to Packaging-> Product Name

The name indicated in the product name is added to the Bundle identifier (spaces are changed to dashes, for example, "Test App" becomes "Test-App").

+3
Oct 31 '14 at 17:02
source share

It may be installed in the .xcconfig file. For example, in one example with the Parse sample, there is "debug.xcconfig" with:

 BUNDLE_IDENTIFIER = com.parse.Anypic 

If so, then this is the place to change it.

0
Jan 06 '15 at 23:16
source share

I saw this also happen when the iOS Deployment Target is higher than your version of Xcode. Between World Wide Developers Christmas when they release beta versions and when a new version is completed.

Let's say you have a project with minimal deployment for the current beta version of iOS, but you are using the Xcode version for release. Just open the project in the current version of Xcode.

0
Jul 12 '15 at 17:11
source share

This may also be due to user-defined variables in the [Target]> Build Settings> Custom

-2
Apr 24 '15 at 15:03
source share



All Articles