Can't change bundle ID in project, greyed out

后端 未结 8 1573
灰色年华
灰色年华 2020-12-29 01:52

I\'m having a problem with bundle identifiers. In the Summary section of my project in Xcode and under \'Identifiers\', I can\'t seem to change the name of my bundle ID as i

相关标签:
8条回答
  • 2020-12-29 02:00

    You may want to consider changing the value of PRODUCT_NAME instead of directly changing the bundle identifier. This can be done thru the XCODE interface (and should have the added benefit of not possibly causing problems with certificates and code signing later on...which can be a real bear to resolve):

    Click here to see stackoverflow thread for detailed instructions on how to do this thru XCode interface

    0 讨论(0)
  • 2020-12-29 02:02

    If anybody else runs into this, it is likely because you have a product name variable, something like .${PRODUCT_NAME:rfc1034identifier}, appended to the end of your bundle identifier under Target (your application) > Info (info.plist). Try removing that.

    0 讨论(0)
  • 2020-12-29 02:02

    I saw this also happen when the iOS Deployment Target is higher than your version of Xcode supports. Between World Wide Developers Christmas when they release the betas and when the new version is finalized.

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

    0 讨论(0)
  • 2020-12-29 02:07

    It may be that it's set in a .xcconfig file instead. For example, one Parse sample project has a 'debug.xcconfig' with:

    BUNDLE_IDENTIFIER = com.parse.Anypic
    

    If so, this is the place to change it.

    0 讨论(0)
  • 2020-12-29 02:13

    If you want to edit the Product Name, rather than remove it; you can set it in your target, using the following steps:

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

    The name set in Product Name is added to the Bundle Identifier (spaces are changed to dashes e.g "Test App" becomes "Test-App").

    0 讨论(0)
  • 2020-12-29 02:22

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

    0 讨论(0)
提交回复
热议问题