是否应该从 plist 文件中的 CFBundleIdentifier 中删除 rfc1034identifier?

发布于 2024-08-26 04:13:47 字数 433 浏览 7 评论 0原文

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

com.mycompany.${PRODUCT_NAME:rfc1034identifier}

显然我必须更改 com.mycompany. ${Product_NAME:rfc1034identifier} 。 mycompany 更改为我公司的域名,但我不知道是否应删除 rfc1034identifier,使其变为:

com.mycompany.${PRODUCT_NAME}

Google 没有帮忙回答我的问题。 此 rfc1034identifier 是否会影响我应在 iPhone 开发者计划 - 配置门户中提供的 AppID?

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

com.mycompany.${PRODUCT_NAME: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 did not help answering my question.
Does this rfc1034identifier affect the AppID that I should provide in the iPhone Developer program - Provisioning Portal?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无法言说的痛 2024-09-02 04:13:47

: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'

别把无礼当个性 2024-09-02 04:13:47

我的理解(尽管反复试验)是,对于您提交或通过 iTunes 或直接加载到 iOS 设备上的每个应用程序,标识符必须是唯一的。因此,即使您使用“*”作为标识符 (1),每个应用程序也必须有自己的唯一标识符。因此,除非您将 PRODUCT_NAME 从一个应用程序更改为另一个应用程序,否则您需要在 ${PRODUCT_NAME:rfc1034identifier} 之后附加一些内容,以确保它是唯一的。我添加了 YYMMDD 格式的日期来执行此操作:${PRODUCT_NAME:rfc1034identifier}110524(2011 年 5 月 24 日)

(1) 即:在配置门户中,当您创建新的应用程序 ID 时,您可以在其中添加“*” “捆绑包标识符(应用程序 ID 后缀)”字段

My understanding (though trial and error) is that the identifier must be unique for each app that you submit, or load onto an iOS device via iTunes or directly. So even if your used a '*' as the identifier (1), each app must have it's own unique identifier. So, unless you change the PRODUCT_NAME from app to app, you want to append something after ${PRODUCT_NAME:rfc1034identifier}, to make sure it's unique. I add a date in YYMMDD format to do this : ${PRODUCT_NAME:rfc1034identifier}110524 (for May 24, 2011)

(1) ie: in the provisioning portal, when you create a a new app id, you put a '*' in the 'Bundle Identifier (App ID Suffix)" field

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文