是否应该从 plist 文件中的 CFBundleIdentifier 中删除 rfc1034identifier? [英] Should the rfc1034identifier be removed from the CFBundleIdentifier in plist file?

查看:18
本文介绍了是否应该从 plist 文件中的 CFBundleIdentifier 中删除 rfc1034identifier?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Xcode 项目的 plist 文件中,我可以看到键 CFBundleIdentifier 的值是:

In my Xcode project's plist file, I can see the value for the key CFBundleIdentifier is:

com.mycompany.${PRODUCT_NAME:rfc1034identifier}

显然我必须将 com.mycompany 更改为我公司的域名,但我不知道是否应该删除 rfc1034identifier 使其成为:

Obviously I will have to change com.mycompany to the domain name of my company, but I have no idea whether the rfc1034identifier should be removed so that it becomes:

com.mycompany.${PRODUCT_NAME}

Google 没有帮助回答我的问题.这个 rfc1034identifier 是否会影响我应该在 iPhone Developer program - Provisioning Portal 中提供的 AppID?

Google did not help answering my question. Does this rfc1034identifier affect the AppID that I should provide in the iPhone Developer program - Provisioning Portal?

推荐答案

:rfc1034identifier 只是对其进行格式化(如果需要),因此包名称中没有非法字符*.您不太可能拥有被非法字符调用的产品,但并非不可能.

The :rfc1034identifier just formats it (if needed) so there are no illegal characters* in the bundle name. You're unlikely to have a product that is called by an illegal character but it's not impossible.

我会把它留在那里,但这真的取决于你.

I'd leave it in there but it's really up to you.

(实际上,大多数时候我只是对捆绑包进行硬编码 - 这样,如果产品名称因任何原因更改,当我在应用商店中更新它时,它仍然具有相同的捆绑包标识符)

(Actually, most of the time I just hardcode the bundle - that way if the product name changes for any reason, it's still got the same bundle identifier when I come to update it in the app store)

*例如空格或点 - 它们将被替换为破折号,因此我的游戏"将成为我的游戏"

*such as a space or a dot - they will be replaced with a dash so 'My Game' would become 'My-Game'

这篇关于是否应该从 plist 文件中的 CFBundleIdentifier 中删除 rfc1034identifier?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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