Search code examples
xcodexcode5provisioning-profile

Xcode 5 will not import provisioning profiles


So in Xcode 5 I go to Preferences > Accounts and I add a new Apple ID to the left hand column. Note the apple id and password must be correct otherwise they would not be accepted.

So now I click on this new apple id on the left, and then click on View Details on the right and the Provisioning Profiles section is empty. I then click on the little round refresh/import button and it spins for 5 or 10 seconds and then returns to an arrow and no provisioning profiles have been added.

If I log into the Apple Provisioning Portal, there are 16 provisioning profiles sitting there waiting to be used, all of which were created with a CSR generated from my computer which I am trying to import them on.

Anybody have any ideas why it would not be downloading these profiles?

EDIT: Also note that I have three other developer accounts that I work with in my Xcode and they import fine. It is only the 1 of 4 that does not work.


Solution

  • New Answer (solved)...

    Okay so I finally figured out what the problem was. In the Apple Provisioning Portal, the account that would not import, did not have any devices added. Once I added a device, then the import/refresh in Xcode 5 started working for this account.

    Although I had to click refresh button twice in Xcode as the first click seemed to create all the Team Provisioning Profiles in the portal and then the second click imported them all.

    Edit: I realized that the problem occurs because Xcode now wants to manage your provisioning profiles for you. If you do not have any development profiles then Xcode will try to create it, but since there are no devices added, it cannot create the profile and therefore fails (without giving an error) and does not import anything either.

    Workaround if import does not work (old answer before I solved it)

    For lack of figuring out what the problem is with the one account, I did the following:

    (1) Downloaded all the provisioning profiles from the provisioning portal to my desktop.

    (2) Downloaded most recent version of the iPhone Configuration Utility from http://support.apple.com/downloads/#iphone%20configuration%20utility

    (3) Ran iPhone Configuration Utility and dragged and dropped all the downloaded provisioning profiles into it.

    (4) Ran Xcode again and the provisoning profiles were now available.