Apply a suffix to the Application name to distinguish the official version from the test version.

Source: Internet
Author: User

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:



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.