Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode "Too few items in teams" error when refreshing provisioning profiles

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:

enter image description here

I have no idea what to do.

like image 654
Harlan Haskins Avatar asked Jul 23 '12 16:07

Harlan Haskins


Video Answer


2 Answers

It seems like I had two accounts for apple like most people: 1) email address account and 2) just apple user ID login.

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.

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'.

To solve this,

  1. delete any, all apple related stuff from your keychain login.

  2. revoke all the problematic profiles, certs, etc from apple website.

  3. just redo provisioning process only using iOS developer approved apple login.

  4. From XCode Organizer's Teams section, click 'refresh' icon at the bottom and follow direction.

like image 116
DavidL Avatar answered Oct 12 '22 23:10

DavidL


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.

Once I log in with the valid iOS Developer account, the problem no longer appears.

like image 30
sandalone Avatar answered Oct 13 '22 00:10

sandalone