xcode 在 Info.plist 中找不到捆绑显示名称

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28621803/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:41:35  来源:igfitidea点击:

Cannot find Bundle Display Name in Info.plist

iosxcodecocoa-touchxcode6

提问by SFF

If my app's product name was "AppName: Some Description", I just want "AppName" to show as a name underneath the app icon on iOS home screen. I did some searching and found this SO question (Change name of iPhone app in Xcode 4). I'm using Xcode 6 and I cannot find the Bundle Display Namein the Info.plist. Can someone please tell me how to do this in Xcode 6.

如果我的应用程序的产品名称是“AppName:Some Description”,我只希望“AppName”在 iOS 主屏幕上的应用程序图标下方显示为名称。我做了一些搜索,发现了这个问题(在 Xcode 4 中更改 iPhone 应用程序的名称)。我正在使用 Xcode 6,但在Info.plist 中找不到Bundle Display Name。有人可以告诉我如何在 Xcode 6 中做到这一点。

Thanks

谢谢

Update:

更新:

Simply place your cursor to the Info.plist and click on the + button. Select "Bundle display name" and insert name in the value section.

只需将光标放在 Info.plist 上,然后单击 + 按钮。选择“捆绑显示名称”并在值部分插入名称。

enter image description here

在此处输入图片说明

回答by Jasmeet Singh

Bundle Name is what you have to set in the info.plist to display the name on the iOS home screen

捆绑名称是您必须在 info.plist 中设置的名称才能在 iOS 主屏幕上显示名称

Edit:

编辑:

you still have bundle display name in xcode 6. Just add it in the info.plist

你仍然在 xcode 6 中有包显示名称。只需将它添加到 info.plist 中

回答by Jorge Casariego

To change the name appearing underneath your app icon, modify the CFBundleDisplayName key in your Info.plist.

要更改应用程序图标下方显示的名称,请修改Info.plist 中的 CFBundleDisplayName 键。

  1. Click the disclosure triangle next to the "Supporting Files" subfolder to reveal its content.
  2. Select the Info.plist file to reveal a property list editor of keys and values.
  3. By default, Xcode displays a human-readable string of a key rather than its actual name. So, search the property list for "Bundle display name". Skip to step 5 if your property list already shows Bundle display name.
  1. 单击“支持文件”子文件夹旁边的显示三角形以显示其内容。
  2. 选择 Info.plist 文件以显示键和值的属性列表编辑器。
  3. 默认情况下,Xcode 显示一个人类可读的键字符串,而不是它的实际名称。因此,在属性列表中搜索“Bundle display name”。如果您的属性列表已显示捆绑显示名称,请跳至步骤 5。

If it doesn't, add it to your list as follows:

  - Click on any entry in your list, then click the "+" button.
  - Choose Bundle display name from the ensuing pop-up menu.

如果没有,请将其添加到您的列表中,如下所示:

  - Click on any entry in your list, then click the "+" button.
  - Choose Bundle display name from the ensuing pop-up menu.
  1. Double-click in the Value column of Bundle display name.

  2. Enter a new value for Bundle display name as shown in Figure

  1. 双击 Bundle display name 的 Value 列。

  2. 为 Bundle display name 输入一个新值,如图

enter image description here

在此处输入图片说明

Technical Q&A QA1823

技术问答 QA1823