在配置文件中,我将我的应用程序 ID 设置为com.mycompany.lowercaseappname
,但在 Xcode 4 中,捆绑标识符自动配置为使用 my ${PRODUCT_NAME}
,它是大写的(我希望用户在应用程序图标下看到它是大写的)。这可以吗,还是我需要在 Xcode 中手动将 bundle id 更改为小写?
2 回答
捆绑包 ID 区分大小写。来自苹果文档:
但是,与域名不同的是,捆绑包 ID 区分大小写。如果 App ID 是小写的,那么你的 bundle ID 也需要是小写的。
请注意,捆绑 ID 不是用户将看到的应用名称。那是“捆绑显示名称”
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.