简体   繁体   English

捆绑包标识符和产品名称中的区分大小写

[英]Case sensitivity in bundle Identifier and the product name

I'm creating a new project in xCode with the following name "SampleApp" Bundle identifier becomes like this "com.samplecompany.SampleApp" (Last word has camel casing) But the App Id in the developer portal is "com.sampleCompany.sampleapp" (All lower case letters). 我正在xCode中使用以下名称“ SampleApp”创建一个新项目捆绑标识符变得像这样的“ com.samplecompany.SampleApp”(最后一个名称是驼峰式大写字母),但是开发人员门户中的应用ID是“ com.sampleCompany.sampleapp” ”(所有小写字母)。

So, whenever I archive and try to sign a build with the provisioning profile, xCode says that the provisioning profile with the mentioned bundle identifier(com.samplecompany.SampleApp) is not found.(Since the app id is in all lower case format in the developer portal). 因此,每当我存档并尝试使用配置文件对构建进行签名时,xCode都会显示找不到带有提及的捆绑包标识符(com.samplecompany.SampleApp)的配置文件。开发人员门户)。

I tried to create the app id, "com.samplecompany.SampleApp", but the developer portal throws an error "com.samplecompany.SampleApp" is already taken. 我试图创建应用程序ID“ com.samplecompany.SampleApp”,但开发人员门户网站已抛出错误“ com.samplecompany.SampleApp”。

If I go with all lowercase, My app name also becomes lower case. 如果我全部使用小写字母,则我的应用程序名称也将变成小写字母。 My app is already in the appstore with all lower cases. 我的应用程序已经存在于所有小写字母的appstore中。 So, I'm worried, if I remove the profile and re-create it, it will cause problems in the appstore build. 因此,我很担心,如果删除配置文件并重新创建它,将会在appstore构建中引起问题。

I'm struck here. 我被打中了。 How to solve this issue ? 如何解决这个问题?

Apple AppDistributionGuide says, Apple AppDistributionGuide说,

If the App ID is an explicit App ID, it exactly matches the bundle ID. 如果应用程序ID是显式应用程序ID,则它与捆绑软件ID完全匹配。 However, unlike domain names, bundle IDs are case sensitive. 但是,与域名不同,捆绑包ID区分大小写。 If the App ID is lowercase, your bundle ID needs to be lowercase, too 如果应用程序ID为小写字母,则您的捆绑商品ID也必须为小写字母

Note: bundle ID is not what the user will see as the app name. 注意:捆绑包ID不是用户将看到的应用程序名称。 That's the "Bundle Display Name". 那就是“捆绑显示名称”。

The bundle ID is case sensitive. 捆绑软件ID区分大小写。 we need to use the app Id and bundle identifier are same. 我们需要使用应用程序ID和捆绑包标识符相同。 check the Apple Documentation 查看Apple文档

The bundle ID is not what the user will see as the app name. 捆绑包ID不是用户将看到的应用程序名称。 That's the " Bundle Display Name ".You can change the Bundle Display Name to change the icon name displayed in home screen. 这就是“ 捆绑显示名称 ”。您可以更改捆绑显示名称来更改显示在主屏幕中的图标名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM