应用名称中的撇号 [英] Apostrophe in app name

查看:39
本文介绍了应用名称中的撇号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算在 Apple Store 中发布一款标题中包含撇号的应用.我注意到当目标"名称包含撇号时,XCode 在构建代码时已经存在问题.我已经设法解决了这个问题(目前),通过使用以下字符:

I intend on releasing an app in the Apple store that contains an apostrophe in the title. I notice that XCode already has issues in building the code when the 'Target' name contains an apostrophe. I've managed to get around this problem (for now), by using the following character:

相反:

'

这似乎构建正常,但我有点担心以后可能会发生什么,例如当我将最终构建提交到商店时等.

This seems to build okay, but I'm a little concerned about what may happen later down the line, such as when I submit the final build to the store etc.

有人碰巧知道这个小小的变通办法是否合适,还是我只是在为一个充满问题的世界做好准备?

Does anyone happen to know if this little workaround is suitable, or am I just setting myself up for a world of problems?

例如,使用这样的抽象字符是否意味着没有人可以在商店中搜索我的应用程序?

For example, is using an abstract character like this going to mean no one can search for my app in the store?

推荐答案

应用在 iOS 跳板上的显示名称是在应用的 infoPlist 中设置的,与构建设置无关.Xcode 项目、目标和所有其他文件可以随意命名.

The display name of the app as it will appear on the iOS spring board is set in the app's infoPlist and has nothing to do with build settings. The Xcode project, target and all other files can be named whatever you like.

您需要在应用程序的 Info.plist 中设置 CFBundleDisplayName.默认情况下,它被设置为 ${PRODUCT_NAME} 这是目标名称的 Xcode 配置变量,但它可以是你喜欢的.

You need to set the CFBundleDisplayName in your app's Info.plist. By default this is set to ${PRODUCT_NAME} which is the Xcode configuration variable of the target's name, but it can be what you like.

更进一步,您应该使用 InfoPlist.strings 文件为不同的本地化重载此值.设置此文件中的值将使 Info.plist 中的另一个值过时.现在 Xcode 在新项目中带有一个空白的,但如果它不存在,它很容易添加.

Going one step further you should use the InfoPlist.strings file to overload this value for different localisations. Setting the value in this file will make the other value in the Info.plist obsolete. These days Xcode comes with a blank one in new projects but it's easily added if it's not there.

InfoPlist.strings 文件如下所示:

The InfoPlist.strings file would look like this:

"CFBundleDisplayName" = "App's Name";

注意:如果您已按上述方式设置应用程序名称,但跳板未显示撇号,则可能是故意将其去掉.

Note: If you've set up the app's name as above and the spring board isn't displaying the Apostrophe then it's probably taking it out deliberately.

这篇关于应用名称中的撇号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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