Xcode name issue - ios

I've just realised that I've created my app ID bundle indentifier with a lower case name, and I've set up my xcode project with the same name but with the first 2 letters in upper case, so for example my bundle indentifier is something like
com.mysite.my-game
But my xcode project name is...
My-Game
So I think xcode has used that to create my bundle indentifier, and the bundle indentifier is...
com.mysite.My-Game
So first question is, does it make any difference?
2nd question is, if it does, how do I change the project name/bundle indentifier in xcode to be...
my-game
i'e the same as the app ID version?
and 3rd, what name is going to be displayed when the game is live on the app store, because I would actually prefer...
My-Game

So first question is, does it make any difference?
Yes it does.
2nd question is, if it does, how do I change the project name/bundle
indentifier in xcode to be...
Simply edit your info.plist file, edit the Bundle identifier entry by removing the default containing ${PRODUCT_NAME:rfc1034identifier} and enter the correct one you need.
In case you wish to keep Xcode generating your bundle identifier, change the Product name entry below Packaging within your Build Settings.
3rd, what name is going to be displayed when the game is live on the
app store, because I would actually prefer...
That will be determined once you submit your app. You may freely chose any name within iTunes Connect - no need for it to correlate with Bundle name or Bundle identifier.

To make this warning go away, edit Info.plist file, and make sure the key Bundle creator OS Type code is not empty. If it is empty, you can use ????

Related

Can I safely change the PRODUCT_NAME for an app?

A while ago, I was asked to change the name of one of our apps, so I changed the display name in the "General" tab to the new name. That was fine for a while, but then we noticed that our privacy explanations all look like:
${PRODUCT_NAME} uses your location to...
and so they're using the old name. I could go through and update each of them to use the new name, but that would be tedious, so I changed the product name for the app - but not the bundle identifier - and rebuilt it.
In the simulator, I now have two different instances of my app. I'm worried that if I go ahead with this change, end users will end up with two instances of the app. Is that the case, or does Apple do something different when you install an app through the app store?
For Change Product Name Only:
and that's it.
If you want to rename your entire project:
For Change Entire Project Name
then
The bundle name and bundle id is how the app is identified. If you change the bundle name, you have a new app. Anyone installing your app which has a new bundle identifier will find they have the old and new version of the app. Are you sure you didn't change the bundle name? Look at your info.plist file and see how they are defined. The display name is safe to change.
Also: see this link for an explanation of these plist settings in context:
Product_Name

How to change app display name in Xcode 8 to add a space

I am trying to put a space in my app name (standalone sticker pack) in Xcode 8. The solutions I've seen on here are to change the Product Name (in packaging) or to change the "Bundle Display Name".
I've changed the product name and that hasn't worked (I cleaned, rebuilt, reset content and settings in simulator and logged out of xcode, logged back in and rebuilt app).
I can't see "Bundle Display Name" anywhere. Should I add it and if so, how do I do that?
I've read the thread How to change the name of an iOS app? and done the suggestions, but it's still showing in simulator and testflight without the space. Have I missed something?
Steps:
1. Open project Info.
2. Add a property Bundle display name into Custom iOS Target Properties. (as "Key")
3. Enter the display name, that will be shown on iPhone/iPad screen under an app icon. (as "Value")
It's my solution that works properly. Also you should delete previously installed app and reinstall it.
Just go to Target -> General -> In Identity -> Display Name. By default, it has your app display name which is unhighlighted. Enter here your new app display name.
There are two ways to change app display name.
Solution 1:
Goto Targets -> General Tab -> Identity section
In this you’ll find Display Name field where you set app display name.
Solution 2:
Bundle Display Name property is not present by default in Info.plist. You need to explicitly add this property.
Below image shows how to add this property.
Note: If still this new name is not reflected in your app then delete app and install it again.
When creating a new project, Xcode uses the Product Name by default. You can just change that in your Build Settings, even setting separate names for your schemes.
After changed Bundle display name make a Clean of project.
Change the Bundle Display Name (CFBundleDisplayName) in your Info.plist file
Check if you have any localization (InfoPlist.strings) files, and change the corresponding CFBundleDisplayName values in those files to the localized values.
That's it.
Goto Info.plist and add "Bundle display name" and set your rename in value box make sure the Bundle display name type is a string run the project automatically it will be changed
For xcode 9.3, Goto Targets, Build Settings, under packaging change Produce Name. See below screen shot
After this if it not changed, clean product to reopen X code.

Is it possible to change the company identifier of an existing Xcode project?

I have an existing Xcode project in which I've mistakenly set the company identifier as simply companyName rather than com.companyName. My bundle identifier renders as companyName.productName (which is as expected), but I'm hoping to be able to change this to the more correct com.companyName.productName.
I could simply change the bundle identifier in the plist, but is it possible to change the company identifier and have this change reflected in the bundle identifier and anywhere else it needs to show up? Or is changing the bundle identifier my best bet? And is there anything to look out for if I do? (The app has not yet been submitted, but I'm in the process of getting ready to do that.)
Thanks in advance.

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!
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.
Not sure why this is happening to you, but try to change in the info.plist file.
Go to info.plist file
Go to Bundle Identifier key-value pair
Remove .${PRODUCT_NAME:rfc1034identifier} from the value and save the file
Your bundle identifier has been modified as required.
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").
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
With Xcode 14.x
Just press the arrow beside the bundle identifier field, it will jump to Signing & Capabilities, here you can edit bundle id.
Steps:
Select Project and then click Target
Under General scroll to Identity section
Click arrow beside bundle id
Edit the bundle id (it will be reflected in Identity section)
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.
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.
This can also be related to user defined variables under [Target] > Build Settings > User-Defined

How to correct the spelling of app name in App Store?

I know this may be impossible but...
I just got an app approved, and everywhere (that I can see) it is capitalized correctly - it's called "Daybreak", but when you download it, the name under the icon is "daybreak". I let Xcode take care of all that naming stuff this time, so I'm not sure where it got changed, or where the app store is taking the app name from. Like I said, every where else it is correct - just not under the icon in my phone!
[EDIT] One other place it shows up lower case is in the organizer for its archive. On the left it's lower case; when selected, it's lower case in the large font at the top of the details, and upper case just below that...
[EDIT] I should mention that I'm using Xcode 4...
[EDIT] The following are from my target's info tab:
Bundle display name ${PRODUCT_NAME}
Bundle identifier com.lollygaggersoft.${PRODUCT_NAME:rfc1034identifier}
[EDIT] I was able to fix the issue by manually changing my Bundle display name to the correct capitalization and leaving the Bundle identifier alone. This worked when I submitted my update.
Look at Info tab in Target settings. There are two keys:
Bunle name -- is name of directory (followed by .app) where all program stuff are kept.
Bundle display name -- is wat you exactly need, it is the name that will be displayed in SpringBoard
It's common to set both bundle name and bundle display name to ${PRODUCT_NAME}, than set field "Product name" in project Build settings to whatever you want
PS In organizer you see bundle name in small fond and bundle display name in large font.
PPS AFAIK you need to upload another version to appstore in order to change display name.

Resources