The product name of the app is the name of your app as it will appear to customers and you choose it in the Xcode Assistant when starting a new project, but what if you would like to change it?
It seems a trivial question but I tried searching and I find old answers like this one Changing Cocoa display name in the app? (seven years ago) or this one How to change the name of a Mac application in the build settings? which assumes you have a MainMenu.xib file, or answers that refer to iPhone as for example this answer (nine years ago) How to change the name of an iOS app? or this Apple's Technical note for iOS.
Because many things may have changed in Xcode since seven or more years and macOS is different from iOS, I'm afraid to create some trouble, or to change the name that appears in some parts, but forget the old name in another place.
What is the correct way to change the name that the user sees in an app for Mac?
Go to the app > res > values > strings. xml file as shown in the below image. In this file we have a string name as app_name it is the string resource that holds the current app name which is passed in the Manifest. xml file's application tag inside the label attribute.
In Xcode 8 onwards simply changing Scheme name does the job , now . Just go to scheme manager and first select the scheme and then it enter , whatever name you put that would be the name of ipa and app file.
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. Show activity on this post. After changed Bundle display name make a Clean of project. Show activity on this post.
Method one is just used to set app icon in the iOS simulator, if you want to set the iOS app icon when the app is published to the Apple app store, you should follow the below steps. When you create an Xcode project use one template such as Single View App, there is an assets catalog file created in the project file list.
A: To change the name appearing underneath your app icon, modify the CFBundleDisplayName key in your Info.plist. Follow these steps to modify CFBundleDisplayName: In Xcode, click the disclosure triangle next to your app folder in the project navigator to reveal its content as shown in Figure 1.
Follow these steps to modify CFBundleDisplayName: In Xcode, click the disclosure triangle next to your app folder in the project navigator to reveal its content as shown in Figure 1. Click the disclosure triangle next to the "Supporting Files" subfolder to reveal its content.
There are several ways to change the name of the app, after you have created the project:
You can rename the target (Double click on the name) because by default Xcode uses the target name as product's name (see next screenshot).
You can set the product name directly in the build settings or via xcconfig files. I actually prefer this way because you can create different names for different build configurations, e.g., "MyApp Debug", "MyApp Beta", "MyApp". So just replace the $(TARGET_NAME)
with the name of your app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With