This article turns from: Http://www.devzeng.com/blog/ios-two-version-app-setting-profile.htmliOS development of the same app set different icons and names
SEP 6TH, 2014
Often encountered in the development of the same app will have a lot of channel version, such as OTA internal beta version, AppStore release version and so on. For these different versions we will usually choose different icons, app names, etc., as shown in the following:
P.S the two test icons used above are from 土巴兔
乐视TV
the iphone version of the app icon, is two very good app, thank you.
Bundle ID
The iOS system distinguishes between different apps and is judged by whether the app's bundle ID is the same. If you want to install multiple versions of an app on a system, you actually need multiple bundle IDs, that is, a bundle ID for the official version, and a bundle ID for the beta version. For example, the bundle ID of our official version (posted to AppStore) is the com.devzeng.myappappstore
bundle ID of the internal OTA beta version com.devzeng.myappota
.
Build Configuration
The default Xcode provides 2 build configuration items (build config):D Ebug and release. In general, these two situations are sufficient, but at some point we need to add a new configuration item, and the steps to add a new configuration item are as follows:
1, Mode one: Select PROJECT
the name, and then select, Info
click Configurations
the following +
selection Duplicate "Debug" Configuration
, such as:
2, Mode two: Select PROJECT
the name, and then select Editor
–> Add Configuration
–> Duplicate "Debug" Configuration
, as shown in:
user-defined Setting
In Xcode User-Defined Setting
, you can define some of the macro configurations used by Xcode compilation, and in order to implement different names and icons in different environments, you can User-Defined Setting
define some configuration for application names and app icons.
1, open User-Defined Setting
, such as:
2, add APP_DISPLAY_NAME
(the name of the app), APP_ICON_NAME
(app icon name) and BUNDLE_IDENTIFIER
(app Bundle ID) Three configuration options, effects such as:
Info.plist Configuration
Some configurations for common info.plist can be found in the common configuration of info.plist files in iOS.
1. Configure the app's icon
${APP_ICON_NAME}.png
${APP_ICON_NAME}@2x.png
${APP_ICON_NAME}[email protected]
The name of the use, and override icon.
2. Configure the name of the app
Set Bundle display name
${APP_DISPLAY_NAME}
The configuration item to, where the APP_DISPLAY_NAME
User-Defined Setting
application name is set earlier.
3. Configure bundle ID to differentiate between different versions
Set Bundle identifier
${BUNDLE_IDENTIFIER}
The configuration item to, where the BUNDLE_IDENTIFIER
User-Defined Setting
application bundle ID is set earlier.
(go) iOS development the same app sets different icons and names