Schema Name Display

I have a custom Xcode build scheme that moves some files to switch between dev and prod variables. Can I change the display name of the application in the dev schema?

For example, if the application name is "MyApp", it appears on the main screen as "MyApp". Can I customize the dev development schema so that it displays as β€œMyApp Dev” on the main screen? I tried setting TARGET_NAME="MyApp Dev" in the pre-action script assembly, but it does not work.

Xcode 7, iOS 9

+5
source share
2 answers

You can do it easily.

  • Add Custom Settings to your goal (e.g. DISPLAY_NAME) and set different values ​​for different schemes.
  • Go to the "Info.plist" of your goal and add the key "Display package name" and set it to "$ (DISPLAY_NAME)"
+16
source

In Xcode 8 (at least) in the build settings you should already have the parameter "Product Name" (in the "Packaging" section). This will take different values ​​for different schemes, although all of them are by default equal to "$ (TARGET_NAME)". Therefore, if you do not specify a display name, it will take the name of the target.

You can change any or all of them.

This way you do not need to create a new user setting.

+2
source

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


All Articles