对于使用 Xcode 8.0 的首次发布,无法在 Xcode 项目中创建具有匹配 Bundle ID 的 App ID

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41445842/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:42:02  来源:igfitidea点击:

Cannot create an App ID with matching Bundle ID in Xcode project for first release using Xcode 8.0

iosobjective-cxcodeapp-idbundle-identifier

提问by dan10

I am trying to create an App ID for my first release. I have a new company developer account. I get the error message 'An App ID with Identifier '' is not available. Please enter a different string'when trying to create the App ID.

我正在尝试为我的第一个版本创建一个 App ID。我有一个新的公司开发者帐户。我收到错误消息“带有标识符的应用程序 ID”不可用。尝试创建 App ID 时,请输入不同的字符串

This happens when:

这发生在:

I type the name of my app in the App ID Description field and I type the matching Bundle ID from my Xcode project (com.MyCompany.MyProductName) in the App ID Suffix field but I get the error and cannot continue.

我在 App ID Description 字段中输入我的应用程序名称,并在 App ID Suffix 字段中输入我的 Xcode 项目 ( com.MyCompany.MyProductName) 中匹配的 Bundle ID,但出现错误并且无法继续。

However, If I type in, say, 'com.MyCompany.MyProductNameVersion1', which is different from the Bundle ID in my Xcode project, then I don't get the error and am able to continue??

但是,如果我输入'com.MyCompany.MyProductNameVersion1',这与我的 Xcode 项目中的 Bundle ID 不同,那么我不会收到错误并且能够继续?

To my knowledge, I need to enter the same Bundle ID as in my Xcode project but its not working as advised.

据我所知,我需要输入与我的 Xcode 项目中相同的 Bundle ID,但它没有按建议工作。

Been stuck on this for a few days, reading and trying all I possibly can, I cannot find a solution and cannot proceed.

被困在这几天,阅读并尝试我可能的一切,我找不到解决方案,无法继续。

Any help is appreciated

任何帮助表示赞赏

UPDATE: In the Accounts section of Xcode > Preferences, I have two entries under 'Team' : the first is my name and (Personal Team) and under 'Role' it says 'User'... the second is my company name and under 'Role' it says 'Agent'.. I also thought this screenshot may be useful. It shows the signing section of the General tab when the Team field is set to my company name: enter image description here

更新:在 Xcode > Preferences 的 Accounts 部分,我在“团队”下有两个条目:第一个是我的名字和(个人团队),在“角色”下它说“用户”......第二个是我的公司名称和在“角色”下它说“代理”..我也认为这个屏幕截图可能有用。当 Team 字段设置为我的公司名称时,它会显示 General 选项卡的签名部分:enter image description here

回答by dan10

I managed to get this sorted. @Beninho85 pointed me in the right direction but the info in this thread was the answer I needed: How to manage Personal Team info on Apple Developer website?I had a two teams in my developer account. One was a previous Personal Team before I joined Apple Developer as a 'company'. This Personal Team had created App ID's for development provisioning profiles which were conflicting with identically named App ID's I wanted to create for distribution profiles using my company name. Identically named App ID's cannot be generated within the portal. Only Apple can delete personal Team accounts already registered with them. I had them delete the personal team and App ID's.

我设法解决了这个问题。@Beninho85 为我指明了正确的方向,但此线程中的信息正是我需要的答案:如何在 Apple Developer 网站上管理个人团队信息?我的开发者帐户中有两个团队。一个是我作为“公司”加入 Apple Developer 之前的个人团队。该个人团队创建了用于开发配置文件的 App ID,这些 App ID 与我想使用我的公司名称为分发配置文件创建的同名 App ID 冲突。无法在门户中生成名称相同的 App ID。只有 Apple 可以删除已向其注册的个人团队帐户。我让他们删除了个人团队和 App ID。

回答by Beninho85

You have the answer in your question. The bundleId must be unique for each application. So if you created this bundleId on another developer account, you can't use it anymore. Delete the previous one or create a new one.

你在你的问题中有答案。对于每个应用程序,bundleId 必须是唯一的。所以如果你在另一个开发者账户上创建了这个 bundleId,你就不能再使用它了。删除前一个或创建一个新的。

回答by bdev

If you're allowing Xcode to "Automatically" manage signing, and you don't see your App ID on the Certificates, Identifiers & Profiles web portal, try enabling any capability (i.e. the Siri capability) which will force Xcode to regenerate a provisioning profile (and register the App ID with iTC).

如果您允许 Xcode“自动”管理签名,并且在证书、标识符和配置文件 Web 门户上没有看到您的 App ID,请尝试启用任何功能(即 Siri 功能),这将强制 Xcode 重新生成配置profile(并在 iTC 注册 App ID)。

Verify that a new provisioning profile has been created by going to Targets > [Target Name] > General. Next to Provisioning Profile, tap the information button and verify that the Created date is today. Once you see your App ID registered in the portal, you can disable the previously enabled capability.

通过转至目标 > [目标名称] > 常规,验证是否已创建新的配置文件。在供应配置文件旁边,点击信息按钮并验证创建日期是否为今天。在门户中看到注册的 App ID 后,您可以禁用之前启用的功能。