Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't change bundle ID in project, greyed out

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 it is greyed out. For example, my project name is 'My App'. In the identifier text box in Summary, it says this 'My-App' and is greyed out. However, my bundle id in my provisioning profile is this, 'com.mycompany.myapp'. I would like to change my bundle ID in my project to that but I can't seem to be able to. Any ideas why it is greyed out? Thanks!

like image 204
Moo33 Avatar asked Aug 13 '12 07:08

Moo33


3 Answers

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.

like image 95
Alex Ross Avatar answered Nov 11 '22 16:11

Alex Ross


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

like image 29
ashokbabuy Avatar answered Nov 11 '22 16:11

ashokbabuy


  1. Go to info.plist file
  2. Go to Bundle Identifier key-value pair
  3. Remove .${PRODUCT_NAME:rfc1034identifier} from the value and save the file

Your bundle identifier has been modified as required.

like image 9
Kunal Khanna Avatar answered Nov 11 '22 14:11

Kunal Khanna