Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - How to change the display name of an app for macOS?

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?

like image 516
Cue Avatar asked Mar 17 '17 01:03

Cue


People also ask

How do I change my app Display name?

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.

How do I change my IPA name in Xcode?

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.

How to change the name of a project in Xcode?

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.

How to set the iOS app icon in Xcode?

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.

How do I change the name appearing underneath my app icon?

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.

How do I modify cfbundledisplayname in Xcode?

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.


1 Answers

There are several ways to change the name of the app, after you have created the project:

  1. 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). Target name

  2. 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. Build settings before Build settings after

like image 166
Jens Meder Avatar answered Oct 31 '22 22:10

Jens Meder