包 ID 区分大小写吗?

发布于 2024-12-08 16:48:07 字数 189 浏览 18 评论 0原文

在配置文件中,我将应用程序 ID 设置为 com.mycompany.lowercaseappname,但在 Xcode 4 中,捆绑包标识符会自动配置为使用我的 ${PRODUCT_NAME},即大写(我希望用户在应用程序图标下看到它大写)。这样可以吗?还是我需要在 Xcode 中手动将包 ID 更改为小写?

In a provisioning profile I set my app id to com.mycompany.lowercaseappname, but in Xcode 4 the bundle identifier is auto configured to use my ${PRODUCT_NAME}, which is capitalized (I want the user to see it capitalized under the app icon). Is this ok or do I need to change the bundle id manually in Xcode to lower case?

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

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

发布评论

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

评论(2

落日海湾 2024-12-15 16:48:07

捆绑包 ID 区分大小写。来自 Apple 文档

但是,与域名不同,捆绑包 ID 区分大小写。如果应用程序 ID 为小写,则您的捆绑包 ID 也需要为小写。

请注意,捆绑包 ID 并不是用户将看到的应用程序名称。这就是“捆绑包显示名称”

The bundle ID is case sensitive. From the Apple Docs:

However, unlike domain names, bundle IDs are case sensitive. If the App ID is lowercase, your bundle ID needs to be lowercase, too.

Note that the bundle ID is not what the user will see as the app name. That's the "Bundle Display Name"

人间不值得 2024-12-15 16:48:07

包标识符必须是全局唯一的(不与世界上任何其他应用程序匹配),但它不必与应用程序名称匹配,大小写也不重要。但是,请记住,首选项文件的名称将与标识符相同,因此用户应该可以将标识符识别为属于您的应用程序。

您可以通过按 Command-1 查看导航器视图、单击 xxx-Info.plist 文件(其中 xxx 是您的应用程序名称)并将 Bundle Identifier 字符串更改为您想要的任何内容,来覆盖 Xcode4 中自动配置的包标识符。它不必包含 ${PRODUCT_NAME:rfc1034identifier} 变量。

The bundle identifier must be globally unique (not match any other application in the world) but it doesn't have to match the application name, nor is the case important. However, remember that the preferences file will be named the same as the identifier so the identifier should be recognizable to the user as belonging to your application.

You can override the auto-configured bundle identifier in Xcode4 by pressing Command-1 to see the navigator view, clicking on the xxx-Info.plist file (where xxx is your application name) and changing the Bundle Identifier string to anything you want. It doesn't have to contain the ${PRODUCT_NAME:rfc1034identifier} variable.

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