ios 如何在 Xcode 8 中更改应用程序显示名称以添加空格
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39759334/
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
How to change app display name in Xcode 8 to add a space
提问by rach
I am trying to put a space in my app name (standalone sticker pack) in Xcode 8. The solutions I've seen on here are to change the Product Name (in packaging) or to change the "Bundle Display Name".
我试图在 Xcode 8 中的应用程序名称(独立贴纸包)中放置一个空格。我在这里看到的解决方案是更改产品名称(在包装中)或更改“捆绑显示名称”。
I've changed the product name and that hasn't worked (I cleaned, rebuilt, reset content and settings in simulator and logged out of xcode, logged back in and rebuilt app).
我已经更改了产品名称,但没有奏效(我在模拟器中清理、重建、重置内容和设置并注销 xcode,重新登录并重建应用程序)。
I can't see "Bundle Display Name" anywhere. Should I add it and if so, how do I do that?
我在任何地方都看不到“捆绑显示名称”。我应该添加它,如果是,我该怎么做?
I've read the thread How to change the name of an iOS app?and done the suggestions, but it's still showing in simulator and testflight without the space. Have I missed something?
我已阅读主题如何更改 iOS 应用程序的名称?并完成了建议,但它仍然在没有空间的模拟器和试飞中显示。我错过了什么吗?
回答by Aleksandr Honcharov
Steps:
脚步:
1.Open project Info
.
1.打开项目Info
。
2.Add a property Bundle display name
into Custom iOS Target Properties
. (as "Key")
2.将属性添加Bundle display name
到Custom iOS Target Properties
. (作为“钥匙”)
3. Enter the display name, that will be shown on iPhone/iPad screen under an app icon. (as "Value")
3. 输入显示名称,该名称将显示在 iPhone/iPad 屏幕上的应用程序图标下。(作为“价值”)
It's my solution that works properly. Also you should delete previously installed app and reinstall it.
这是我的解决方案正常工作。此外,您应该删除以前安装的应用程序并重新安装。
回答by Rahul Panzade
回答by nvson28
- Change the Bundle Display Name (CFBundleDisplayName)in your Info.plist file
- Check if you have any localization (InfoPlist.strings) files, and change the corresponding CFBundleDisplayNamevalues in those files to the localized values.
- That's it.
- 更改Info.plist 文件中的Bundle Display Name (CFBundleDisplayName)
- 检查您是否有任何本地化 (InfoPlist.strings) 文件,并将这些文件中相应的CFBundleDisplayName值更改为本地化值。
- 就是这样。
回答by Alessandro Mattiuzzi
回答by Jan Schlorf
回答by Jayprakash Dubey
There are two ways to change app display name.
有两种方法可以更改应用程序显示名称。
Solution 1:
解决方案1:
Goto Targets
-> General
Tab -> Identity
section
转到Targets
->General
标签 ->Identity
部分
In this you'll find Display Name
field where you set app display name.
在此您将找到Display Name
设置应用程序显示名称的字段。
Solution 2:
解决方案2:
Bundle Display Name
property is not present by default in Info.plist. You need to explicitly add this property.
Bundle Display Name
属性在 Info.plist 中默认不存在。您需要显式添加此属性。
Below image shows how to add this property.
下图显示了如何添加此属性。
Note: If still this new name is not reflected in your app then delete app and install it again.
注意:如果这个新名称仍然没有反映在您的应用程序中,请删除应用程序并重新安装。
回答by iOS
回答by Vidhya Pathi
Goto Info.plist and add "Bundle display name" and set your rename in value box make sure the Bundle display name type is a string run the project automatically it will be changed
转到 Info.plist 并添加“Bundle display name”并在值框中设置重命名,确保 Bundle display name type 是一个字符串,自动运行项目,它将被更改