I'm trying to submit my first app in iOS
. I have entered iOS Provisioning Portal
and I am about to create an app ID.
Lets say that I name my bundle identifier:
com.mycompany.appdemo
Then going to Xcode and in the summary section I want to change the bundle identifier.
But I cannot erase what is being written there, only the start of it. The name of my app is in grey color and I cannot delete it or change it.
So I see in grey color somethng like this App-Demo
which is the name of the project in the left side.
My question is this:
Is it a problem? Do I have to create a new app id named com.mycompany.App-Demo
or something else?
Here is a picture also. As you can see I can only edit the first part.
If you are developing a cordova app, make sure to change the version and bundle identifier in the config.xml
as well
A very simple solution to that is to open the file:
YOURPROJECT.xcodeproj/project.pbxproj
And find for this variable:
PRODUCT_BUNDLE_IDENTIFIER
You'll see something like that:
PRODUCT_BUNDLE_IDENTIFIER = com.YOUR_APP_NAME.SOMETHING;
So, the name on the right is your Bundle Identifier. In my case it works perfectly.
Xcode 7
Select root node of your project -> In editor click on project name -> Select targets -> Identity -> Bundle Identifier
View this picture to see how you can change the bundle identifier
Explanation:
As you can see in the picture, the name of my App is PracticeApp. And my bundle identifier is: com.hello500.PracticeApp
In this case, You can change hello500 to change the bundle identifier of the app.
Just edit the Project name by single click on the Top of project navigator window, will work in this case. You need not to try any other thing. :)
Here's the answer from Apple's official documentation, just tried, it's working.
Setting the Bundle ID
The default bundle ID in your Xcode project is a string formatted as a reverse-domain—for example, com.MyCompany.MyProductName. To create the default bundle ID, Xcode concatenates the company identifier with the product name you entered when creating the project from a template, as described in Setting Properties When Creating Your Xcode Project. (Xcode replaces spaces in the product name to create the default bundle ID.) It may be sufficient to replace the company identifier prefix in the bundle ID or you can replace the entire bundle ID. For example, change the company identifier prefix to match your company domain name or replace the entire bundle ID to match an explicit App ID.
For Mac apps, ensure that every bundle ID is unique within your app bundle. For example, if your app bundle includes a helper app, ensure that its bundle ID is different from your app’s bundle ID.
Follow these steps to change the bundle ID prefix in the General pane in the project editor.
To set the bundle ID prefix
In the project navigator, select the project and your target to display the project editor.
Click General and, if necessary, click the disclosure triangle next to Identity to reveal the settings.
To set the bundle ID
In the project navigator, select the project and your target to display the project editor.
Click Info.
Enter the bundle ID in the Value column of the “Bundle identifier” row.
If you're feeling interested in reading more, please check APP Distribution Guide from Apple.
I know that its late but it might be helpful for people who need to change the Bundle Identifier of the app. In the finder go to the project folder:
the project file --> Right click on your project file '*.xcodeproj'
--> choose 'Show Package Contents'
--> Double click to open 'project.pbxproj' file
--> find 'productName = NAME_YOU_WANT_TO_CHANGE' in the
'/* Begin PBXNativeTarget section */'
The ${PRODUCT_NAME:rfc1034identifier} variable will be replaced with the name you have entered and new Bundle Identifier will be updated to what you need it to be.
Just change Product Name in your project's build settings. This will change the bundle identifier with no need to manually touch xcode configuration files.
This solve my problem.
Just change the Bundle identifier from Build Setting.
Navigate to Project >> Build Setting >> Product Bundle Identifier
Source: Stackoverflow.com