在 Xcode 4 中动态设置 iOS Bundle Display Name on Build [英] Dynamically set iOS Bundle Display Name in Xcode 4 on Build
问题描述
我想知道是否可以通过例如更改应用程序的捆绑显示名称.更改预处理器宏.
i would like to know wether it's possible to change the bundle display name of an app by for example. changing a preprocessor macro.
如果您需要不同版本的应用,这将很有帮助,只是为了在 iPhone 的主屏幕上进行区分.
This would be helpful if you need different versions of your app, just to differentiate on your iphone's homescreen.
推荐答案
您不能以编程方式设置 CFBundleDisplayName
,但是如果您的应用程序是本地化的,您可以设置不同的 CFBundleDisplayName
为您的本地化列表中的每种语言设置的值.
you cannot set the CFBundleDisplayName
programatically, however if your application is localized you could set different CFBundleDisplayName
values for each language what are in your localization list.
如果您将新版本上传到 AppStore,理论上您可以为每个新版本更改一个 CFBundleDisplayName
.如果幸运的话,Apple 不会抱怨的.
if you upload a new version to the AppStore, theoretically you can change a CFBundleDisplayName
for each new version. if you are lucky, the Apple won't complain it.
这篇关于在 Xcode 4 中动态设置 iOS Bundle Display Name on Build的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!