Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Organizer - cannot refresh Provisioning Profiles list [closed]

I am using Xcode 4.3.3

Everything used to work fine before, but since couple of months ago, I can no longer refresh provisioning profiles through Organizer.

The problem:

  • I open organizer
  • Click Provisioning Profiles at the top
  • Then click "Refresh" button at the bottom right"
    1. It displays "Downloading development certificates..." and prompts to login.
    2. After successful login, it displays "Fetching team list..." then shows the error:

      "You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support"


Some more information:

  • I am Team Admin
  • I have valid developer certificate, as displayed in both the Apple Developer Portal, my Keychain, and in Organizer (like i said, this all used to work)
  • I have several valid provisioning profiles displayed in Organizer.
  • I have 2 teams displayed in organizer:
    1. One with developement developer certificate (mine)
    2. One with distribution certificate (for app store)
  • This is not a password issue (I get a different error when i type the wrong password)
  • I have removed all other developer certificates besides mine and the distribution certificate
  • I can successfully add certificates if i manually download them
  • I can successfully add provisioning profiles if i manually download them
  • In the Apple Developer Portal, there are no provisioning profiles marked as "Invalid" (there are some that are expired however)
  • I have force-quit Xcode and even restarted the Mac

This started happening sometime after iOS6 got released (definitely not at the same time). I've read similar questions on the subject, but most of them deal with "corrupted data" error message. This is not the case for me.

UPDATE 1 (Nov 13)

I have now done the following:

  • I have removed all certificates from Keychain, including public and private key.
  • I've revoked my certificate in Apple Dev Portal.
  • I've restarted the machine.
  • I opened Xcode again and hit refresh:
    1. it asked me to login, and prompted to submit a request for a new certificate.
    2. The new certificate was successfully approved and issued, and downloaded into my keychain (i see new public and private keys, as well as the cert).

However i am still getting the same error on the "refresh" of provisioning profiles: "You are not allowed to perform this operation" and i have no profiles in organizer.

UPDATE 2 (Nov 13)

  • I've now updated to XCode 4.5
  • On the first refresh, it actually worked.
  • On all subsequent refreshes, it fails with the same error message "You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support", however it now does it after "Generating Mac Team Provisioning Profile"
    1. Please note i am not using Mac Development. I don't have Developer Mode Enabled, and i don't have Mac Developer program.
    2. I have tried with and without Mac Developer Mode enabled.
    3. Despite the same vague error message, it actually seems to be updating the iOS provisioning profiles.

After so much time on this, i am still determined to remove this error message. Maybe someone can assist and tell me where XCode would keep it's application log? Is there anything like windows "Event Viewer" for a Mac?

like image 985
Slav Avatar asked Nov 12 '12 19:11

Slav


3 Answers

Try Xcode 5.1. It looks like Apple finally fixed this issue.

like image 147
EricS Avatar answered Nov 19 '22 12:11

EricS


I was also getting this error "You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support". My developer provisioning was not working so I could not even test my apps on device.

Here's what worked for me:

  • Go on the iOS Provisioning Portal > Certificates > Development. There is probably a Certificate there which you no longer have the key pair for in Keychain. Revoke it.
  • Delete the relevant profiles from the Xcode organizer. Quit Xcode.
  • Go to ~Library/Developer/Xcode and delete connect1.apple.com **.db (maybe not necessary, but won't hurt).
  • Go to ~Library/Caches/com.apple.dt.Xcode and delete the Cache* files.

Now, Xcode is supposed to automatically create a new developer cert, but that seems to be broken right now. So, don't try to use it. Instead:

  • Go back to the iOS Provisioning Portal.
  • Make sure that your development certificate is revoked (so you don't have one).
  • Now Create a new one, and use the manual process which involves using keychain (we're back in 2009 here). Download the cert.
  • Go back to Xcode > Organizer. Plug in your device. Click on "Provisioning Profiles" under your device name. Delete all certificates currently on the device.
  • Click on the device name. Click "Add to Portal" at the bottom. Go through that process.
  • Go back to Library > Provisioning Profiles (at the top left). If you have an extra Team Provisioning Profile that is invalid, delete it.

Now you should have a working system.

like image 34
Simon Woodside Avatar answered Nov 19 '22 11:11

Simon Woodside


Had the same problem. The reason was the wrong Apple ID please check your Apple Id in the dev center https://developer.apple.com/devcenter/ios/urlRedirect.action?mode=update_profile&userAction=updateAccount&cancelPath=/devcenter/ios/index.action&successPath=/devcenter/ios/index.action

like image 3
Thomas A Avatar answered Nov 19 '22 11:11

Thomas A