Locate the display name of the application that adds the suffix

I have a problem displaying the display name of the application in order to add an additional suffix when adding localization to InfoStrings.plist.

I add different attributes schemeand User-Defined. Therefore, in my info.plist I have App Name $(BUNDLE_DISPLAY_NAME_SUFFIX)in mine CFBundleDisplayName. It will add -Sto my application name at startup on the development diagram and the usual application name in the release diagram that I created. Everything works well.

However, when I try to translate the name of the application, it no longer works. So in mine infoPlist.stringsI tried the following:

"CFBundleDisplayName" = "App Name ";
"CFBundleDisplayName" = "App Name $(BUNDLE_DISPLAY_NAME_SUFFIX)";

Both do not add -Sanymore when I run the development circuit. Does anyone know how I can do this? For example, how to get $(Bundle_DISPLAY_NAME_SUFFIX)read in infoPlist.strings.

In particular, how to turn on the preprocessor in infoPlist.strings?

+4
source share
1 answer

I found the answer to your question in another thread here , but it says a script is needed for this.

( , ) . , configurations. → ( ) → Info tab → , , . , Production, Debug Beta .

TargetBuild settings → Enter display . User defined , , . BUNDLE_DISPLAY_NAME_SUFFIX. Production, Debug Beta.

Info.plist Bundle display name, . , MyApp, ${BUNDLE_DISPLAY_NAME_SUFFIX}, MyApp${BUNDLE_DISPLAY_NAME_SUFFIX}.

, . , Production Archive Debug Debug.

+1

Source: https://habr.com/ru/post/1652417/


All Articles