简体   繁体   English

您如何设置iPhone应用程序的名称?

[英]How do you set the name of the iPhone app?

I have released and updated a few apps now, but this is still not very clear. 我现在已经发布和更新了一些应用程序,但这还不是很清楚。

The app name as it appears on the app store is set from iTunes connect. 应用商店中显示的应用名称是通过iTunes connect设置的。 Where do you set the name of the app as it appears on the phone once it is installed? 安装后,在手机上显示的应用程序名称应在哪里设置?

I have tried and succeeded in setting it in 'Product Name', but when Product Name has a space in it, the binary file name has a space too, which is not allowed when you upload the binary. 我已经尝试并成功在“产品名称”中设置了它,但是当“产品名称”中有空格时,二进制文件名也有一个空格,当您上传二进制文件时是不允许的。

Clarity on this issue would be great. 在这个问题上的清晰度会很好。 Any help is appreciated. 任何帮助表示赞赏。

You can just manually remove the space in the binary's filename before you upload it to iTunes Connect. 您只需在二进制文件名中手动删除空格,然后再将其上传到iTunes Connect。 It doesn't affect your app's name when installed on devices. 在设备上安装时,它不会影响您应用的名称。

In the Info.plist file you can set the name that appears on the iPhone screen. Info.plist文件中,您可以设置显示在iPhone屏幕上的名称。 The setting you need is called "Bundle display name" and it starts out set to ${PRODUCT_NAME} . 您需要的设置称为“捆绑包显示名称”,开始时设置为${PRODUCT_NAME} Set it to whatever you like. 将其设置为任何您喜欢的。

If you want to change the name according to the users language, create a file called InfoPlist.strings and localize it. 如果要根据用户语言更改名称,请创建一个名为InfoPlist.strings的文件并将其本地化。 I've made a Japanese localization (ja) for my app and the file contains one line: 我为我的应用做了日语本地化(ja),文件包含一行:

CFBundleDisplayName = "東京アート";

This means that users with their locale set to Japan see that name, and other users see the one in Info.plist 这意味着其语言环境设置为Japan的用户会看到该名称,其他用户会在Info.plist看到该名称。

If you Get Info on the Target, you can also set the "Product Name", which is the name you end up with after building (the actual file). 如果您在目标上获取信息,则还可以设置“产品名称”,这是您在构建后最终得到的名称(实际文件)。 You can set it with no spaces. 您可以设置没有空格。 You can also just remove the space before you zip and upload. 您也可以在压缩和上传之前删除空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM