从Xcode 11.1开始,是否可以使用其他显示名称和PRODUCT_NAME? [英] In Xcode 11.1 onward, Is there any way to have different Display Name and PRODUCT_NAME?

查看:282
本文介绍了从Xcode 11.1开始,是否可以使用其他显示名称和PRODUCT_NAME?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用名称包含"+".在Xcode 11.1之前,我们可以使用不同的显示名称和PRODUCT_NAME.但是,当我们更新到Xcode 11.1时,更改应用程序名称会自动更改PRODUCT_NAME.当我们将此存档上传到App Store时,出现错误:

Our app name contains a "+". Prior to Xcode 11.1 we could have a different Display name and PRODUCT_NAME. However, when we updated to Xcode 11.1, changing the app name automatically changes PRODUCT_NAME. When we upload this archive to the App Store, we get an error:

无效的捆绑包"错误,因为其中的特殊字符"+" PRODUCT_NAME

'invalid bundle' error because of the special character "+" in the PRODUCT_NAME

显示名称"是指我们在目标Info.plist的显示名称"字段中输入的名称.

"Display name" refers to the name we enter in the Display name field in our targets Info.plist.

在Xcode 11.1和更高版本中,我们可以使用不同的显示名称和产品名称吗?另外,有没有办法在PRODUCT_NAME中有特殊字符的同时成功上传到App Store?

Can we have a different Display name and Product name in Xcode 11.1 and later? Also, is there a way to successfully upload to the App Store while having a special character in PRODUCT_NAME?

推荐答案

在Xcode11中,应用程序的显示名称仅设置为${PRODUCT_NAME}. 显示名称始终与产品名称相同,请尝试更新Info.p列表中的CFBundleDisplayName.

In Xcode11, the app display name just set to ${PRODUCT_NAME}. that's display name always same as product name, try to update CFBundleDisplayNamein the Info.plist.

这篇关于从Xcode 11.1开始,是否可以使用其他显示名称和PRODUCT_NAME?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆