ios - 如何为每个目标提供不同的 bundle 显示名称(本地化)?

标签 ios xcode

在我的 iOS 项目中,我有多个目标来构建几个略有不同的应用程序。每个应用程序都需要有自己的本地化名称。我怎样才能实现这个目标?我尝试本地化 Info.plist 但失败了。

最佳答案

您可以转到“build设置”并为每个目标单独选择 Info.plist 文件 (INFOPLIST_FILE) 的名称。

您还可以使用不同的 InfoPlist.strings
xx.lproj 中使用 InfoPlist.strings(例如 en.lproj)

InfoPlist.strings 中添加以下行:

/* Application Name on the Springboard */
"CFBundleDisplayName" = "my app";

关于ios - 如何为每个目标提供不同的 bundle 显示名称(本地化)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24880222/

相关文章:

ios - 图像未显示在 UITabBarItem 中

ios - iTunes 连接,Xcode 在管理器中验证

iphone - Xcode libtool 错误 -- "foo.o is an object file (not allowed in a library)"

ios - Air to iPad Release Build Assets 加载失败

ios - MPMediaPickerController 从不显示在 iOS 13 上,没有打印错误

iPhone App调用第三方dylib失败

ios - 从协作Xcode项目中清除空文件引用

c++ - 链接错误 : undefined reference for architecture x86_64 for Xcode 5

ios - swift : Pull down to dismiss `UITableViewController`

ios - cordova 在最新的 12.4 iOS 版本中支持 Indexeddb 吗?