Apply a suffix to the Application name to distinguish the official version from the test version.
During the development process, you usually encounter a device installed with an application that cannot determine whether the current version is debug or release. The previous practice was to enter the application and find an internal payment point, pay-as-you-go and check whether the purchase prompt box is sandbox. Therefore, the method of adding a prefix to the application is clear at a glance. Not to mention nonsense.
1. Select the target-build settings, and click the red box.
2. Click it and you will see
3. Highlight the New_Setting keyboard enter and rename it to BUNDLE_DISPLAY_NAME_SUFFIX (after testing, you can name it at will, as long as the definition and usage are consistent), and change the information required by the corresponding version.
If you want to delete it, It's easy. You can still highlight New_Setting and delete the keyboard.
4. Go to the project name. plist file to modify
5. Note that if the project supports a multi-language environment and is defined in InfoPlist. strings
CFBundleDisplayName = "yourAppName"; you cannot use CFBundleDisplayName. You must modify it accordingly. As shown in the preceding configuration, change it to "yourAppName" = "Application name ".
By the way, if you want to add a compilation environment, do the following: