ios 刷新配置文件时出现 XCode“团队中的项目太少”错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11616493/
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 "Too few items in teams" error when refreshing provisioning profiles
提问by Harlan Haskins
I'm trying to build my apps. I've installed the provisioning profiles that my team has set up. I've installed my developer certificate and the WWDR certificate. But when I refresh my provisioning profile library it throws this error:
我正在尝试构建我的应用程序。我已经安装了我的团队设置的配置文件。我已经安装了我的开发者证书和 WWDR 证书。但是当我刷新我的配置文件库时,它会引发此错误:
I have no idea what to do.
我不知道该怎么做。
采纳答案by DavidL
It seems like I had two accounts for apple like most people: 1) email address account and 2) just apple user ID login.
似乎我和大多数人一样有两个苹果帐户:1)电子邮件地址帐户和 2)只是苹果用户 ID 登录。
When you sign up for an iOS developer account, only one account gets approved as an iOS developer. It doesn't matter if those two accounts are merged and linked inside apple profile, only one gets approved. You can check this by logging into both accounts separately to their developer website. One account will say you are a member and another will say pay up the fee to become iOS developer.
当您注册 iOS 开发者帐户时,只有一个帐户被批准为 iOS 开发者。如果这两个帐户在苹果个人资料中合并并链接在一起,则只有一个获得批准。您可以通过分别登录两个帐户到他们的开发者网站来检查这一点。一个帐户会说您是会员,另一个帐户会说支付费用以成为 iOS 开发人员。
The problem is that your keychain already stored one of apple id credentials from the past... and you probably signed up for apple iOS developer program using the other apple login. Xcode automatically gets keychain's previously stored credential for 'Teams' section and since that account from keychain was not activated for the iOS developer account, it's complaining that no one is a valid developer in 'Teams'.
问题是您的钥匙串已经存储了过去的一个 Apple id 凭据……并且您可能使用另一个 Apple 登录名注册了 Apple iOS 开发者程序。Xcode 会自动获取钥匙串先前存储的“团队”部分的凭证,并且由于钥匙串中的该帐户未为 iOS 开发人员帐户激活,因此它抱怨没有人是“团队”中的有效开发人员。
To solve this,
为了解决这个问题,
delete any, all apple related stuff from your keychain login.
revoke all the problematic profiles, certs, etc from apple website.
just redo provisioning process only using iOS developer approved apple login.
From XCode Organizer's Teams section, click 'refresh' icon at the bottom and follow direction.
从您的钥匙串登录中删除所有与苹果相关的内容。
从苹果网站撤销所有有问题的配置文件、证书等。
仅使用 iOS 开发人员批准的 Apple 登录重做配置过程。
从 XCode Organizer 的 Teams 部分,单击底部的“刷新”图标并按照指示进行操作。
回答by sandalone
This happened to me when I use Apple Developer account which does not have valid iOS developer certificate. The certificate is either expired or never bought in the first place.
当我使用没有有效 iOS 开发人员证书的Apple 开发人员帐户时,这发生在我身上。该证书要么已过期,要么从未购买过。
Once I log in with the valid iOS Developer account, the problem no longer appears.
使用有效的 iOS 开发人员帐户登录后,问题不再出现。
回答by Fatih Arslan
My solution was a simple logout from iTunes and Mac App Store. I was loged with an different Apple ID. This Apple ID is different from my Apple ID that I'm using for iOS Program.
我的解决方案是从 iTunes 和 Mac App Store 简单注销。我使用不同的 Apple ID 登录。此 Apple ID 与我用于 iOS 程序的 Apple ID 不同。
回答by lmnbeyond
Please reference: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html
请参考:https: //developer.apple.com/legacy/library/technotes/tn2250/_index.html
Provisioning Profile Refresh Troubleshooting:
配置文件刷新故障排除:
If you are receiving the error message:
如果您收到错误消息:
Too few items in Teams
Teams 中的项目太少
Perform the steps below:
执行以下步骤:
Open Keychain Access > Passwords category.
Delete the entries for daw.apple.com and daw2.apple.com
Retry the Provisioning Profile Refresh process.
打开钥匙串访问 > 密码类别。
删除条目daw.apple.com和daw2.apple.com
重试配置文件刷新过程。
回答by Svarog
Just a quick note if somebody from Mac Develop program lands here:
如果有人从 Mac Develop 程序登陆这里,请注意:
I'm brand new to Apple development, so, maybe this is a common knowledge, but I didn't ran across.
我是 Apple 开发的新手,所以,也许这是一个常识,但我没有遇到。
Signed up for Mac Developer program, not iOS, and tried to "Refresh from Developer Portal" with exact same error: "Too few items in teams." Tried all the steps above and elsewhere, with no success.
注册了 Mac 开发者计划,而不是 iOS,并尝试“从开发者门户刷新”并出现完全相同的错误:“团队中的项目太少。” 尝试了上面和其他地方的所有步骤,但没有成功。
Ended up calling their support to only find out that this particular functionality doesn't work with Mac Dev only (no iOS Dev) membership profiles. So, manual download/import is the solution as tech on the phone told me that it looks for iOS teams, doesn't find it and errors out.
最终打电话给他们的支持,只是发现此特定功能不适用于仅 Mac 开发(非 iOS 开发)会员配置文件。因此,手动下载/导入是解决方案,因为电话上的技术人员告诉我它会查找 iOS 团队,但没有找到并出错。
Hope this helps & saves a couple of hours of frustration for somebody.
希望这有助于并为某人节省几个小时的挫败感。
回答by Marc J. Schmidt
I got the message too: "Too few items in Property/teams/Entity/Developer"
我也收到消息:“属性/团队/实体/开发人员中的项目太少”
It works now, after adding my account (which is connected with the macbook in itunes and which I used in Xcode) to an "Developer" under "Peoples" at https://developer.apple.com/membercenter/index.action#iPhoneDev
在将我的帐户(与 iTunes 中的 macbook 连接并且我在 Xcode 中使用的帐户)添加到https://developer.apple.com/membercenter/index.action# 上“Peoples”下的“Developer”后,它现在可以工作了iPhone开发
Give it a try.
试一试。
回答by jww
Go to developer.apple.com. In the upper right menu area, select "Member Center." Once in the Member Center, select "Certificates, Identifiers & Profiles."
转到 developer.apple.com。在右上角的菜单区域,选择“会员中心”。进入会员中心后,选择“证书、标识符和配置文件”。
Verify your accounts have not expired; or if new to the program (or renewal) that the order has been processed.
验证您的帐户尚未过期;或者如果是新的程序(或续订),则订单已被处理。
回答by Eron Villarreal
I still encountered the same issue after following the other answers on this page. Here is what I needed to do to get things working.
在遵循此页面上的其他答案后,我仍然遇到了同样的问题。这是我需要做的事情才能正常工作。
Make sure that you have fully accepted the invitation email to join the Apple Developer program. Your account admin can verify your status through the management panel.
确保您已完全接受加入 Apple Developer 计划的邀请电子邮件。您的帐户管理员可以通过管理面板验证您的状态。
- Click the link inside the "Please verify your email address" email
- Click the "submit" button to finish registration
- 单击“请验证您的电子邮件地址”电子邮件中的链接
- 点击“提交”按钮完成注册