ios Xcode 错误:“应用 ID 无法注册到您的开发团队。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44160993/
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
Xcode Error: "The app ID cannot be registered to your development team."
提问by WeirdElfB0y
We are porting an Android app to iOS for a client. They have added our account to their iTunes Connect account and created an app entry. We developed the app using the bundle ID they specified.
我们正在为客户端将 Android 应用程序移植到 iOS。他们已将我们的帐户添加到他们的 iTunes Connect 帐户并创建了一个应用程序条目。我们使用他们指定的捆绑 ID 开发了该应用程序。
But now, when the app is ready for testing, we can't create a provisioning profile in Xcode. It is set to Automatic signing and this error is shown:
但是现在,当应用程序准备好进行测试时,我们无法在 Xcode 中创建配置文件。它设置为自动签名并显示此错误:
Failed to create provisioning profile.
The app ID "<bundle-id>" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
未能创建配置文件。
应用 ID“<bundle-id>”无法注册到您的开发团队。将您的捆绑标识符更改为唯一字符串以重试。
Our account is added as an App Manager in their iTunes Connect account, but still we can't take output with this ID. This error is not shown if we change the bundle ID in Xcode.
我们的帐户被添加为他们的 iTunes Connect 帐户中的应用程序管理器,但我们仍然无法使用此 ID 进行输出。如果我们在 Xcode 中更改包 ID,则不会显示此错误。
回答by payliu
Meet same Issue on one mac, but ok on another mac. I'm sure bundle ID is fine and unique.
在一台 mac 上遇到同样的问题,但在另一台 mac 上没问题。我确定捆绑 ID 很好且唯一。
I know it is provisioning profile issue, so Try refreshing the provisioning profile on your Local computer. Then It Works!
我知道这是配置文件问题,所以尝试刷新本地计算机上的配置文件。然后它起作用了!
cd '~/Library/MobileDevice/Provisioning Profiles/'
rm *
- Xcode > Preferences... > Accounts > click your Account and Team name > click
Download Manual Profiles
- Run app again
cd '~/Library/MobileDevice/Provisioning Profiles/'
rm *
- Xcode > Preferences... > Accounts > 单击您的帐户和团队名称 > 单击
Download Manual Profiles
- 再次运行应用
回答by Firda Sahidi
Go to Build Settings tab, and then change the Product Bundle Identifier to another name. It works in mine.
转到 Build Settings 选项卡,然后将 Product Bundle Identifier 更改为另一个名称。它适用于我的。
回答by Thili77
回答by akaltar
I had this same issue as OP and the problem was that I was invited only on appstoreconnect and not on developer.apple.com. After being invited as a member on developer.apple.com and going into the preferences in XCode, I got a new option to sign as a member of the organization. Setting signing team as member of organization in project settings fixed the issue. After that creating the provisioning profile was successful using automatic signage management.
我和 OP 有同样的问题,问题是我只在 appstoreconnect 上被邀请,而不是在 developer.apple.com 上。在 developer.apple.com 上受邀成为会员并进入 XCode 中的首选项后,我获得了一个新选项,可以作为组织成员进行签名。在项目设置中将签名团队设置为组织成员修复了该问题。之后,使用自动标牌管理成功创建了配置文件。
回答by Chris
This happened to me, even though I had already registered the Bundle Id with my account. It turns out that the capitalisation differed, so I had to change the bundle id in Xcode to lowercase, and it all worked. Hope that helps someone else :)
这发生在我身上,即使我已经在我的帐户中注册了 Bundle Id。结果发现大小写不同,所以我不得不将 Xcode 中的 bundle id 更改为小写,并且一切正常。希望能帮助别人:)
回答by Zhao Lei
I encountered the same problem when I was trying to compile a sample project provided by Apple. In the end I figured out that apparently they pre-compiled the sample code before shipping them to developers, so the binary had their signature.
我在尝试编译 Apple 提供的示例项目时遇到了同样的问题。最后我发现他们显然在将示例代码发送给开发人员之前预编译了它们,所以二进制文件有他们的签名。
The way to solve it is simple, just delete all the built binaries and re-compile using your own bundle identifier and you should be fine.
解决方法很简单,只需删除所有构建的二进制文件并使用您自己的包标识符重新编译,您应该没问题。
Just go to the menu bar, click on [Product] -> [Clean Build Folder]to delete all compiled binaries
只需转到菜单栏,单击[Product] -> [Clean Build Folder]删除所有已编译的二进制文件
回答by Debaprio B
If this persists even after clearing provisioning profile and re-downloading them, then it might be due to the bundle ID already registered in Apple's MDM push certificate.
如果即使在清除配置文件并重新下载它们后这种情况仍然存在,则可能是由于捆绑 ID 已在 Apple 的 MDM 推送证书中注册。
回答by JP Lew
回答by lamazing
None of the above answers worked for me, and as said in the original question I had also to keep the same bundle identifier since the app was already published in the store by the client.
以上答案都不适合我,正如原始问题中所说,我还必须保留相同的捆绑标识符,因为该应用程序已经由客户在商店中发布。
The solution for me was to ask the client to change my access from App Manager to Admin,so that I had "Access to Certificates, Identifiers & Profiles.", you can check if it is the case in the App Store Connect => Users and Access => and then click on your profile (be sure to choose the right team if you belong to multiple).
我的解决方案是要求客户端将我的访问权限从 App Manager 更改为 Admin,以便我可以“访问证书、标识符和配置文件。”,您可以在App Store Connect => Users 中检查是否是这种情况和访问 => 然后单击您的个人资料(如果您属于多个,请务必选择正确的团队)。
Once you are admin go back to Xcode and in the signing tab select 'Automatically manage signing', then in Team dropdown you should be able to select the right team and the signature will work.
成为管理员后,返回 Xcode 并在签名选项卡中选择“自动管理签名”,然后在团队下拉列表中,您应该能够选择正确的团队,签名将起作用。