Deleted the Team Provisioning Profile:* in the Provisioning Portal, what to do?

14,136

Solution 1

I have a MacBook with Xcode 4.2 installed.

I also, in the course of "getting acquainted" with the iOS Provisioning Portal and Xcode, removed the iOS Team Provisioning Profile:*. I wasn't having any success getting it back, either by removing the device from Xcode Organizer and plugging it back in, or by removing and again creating the Provisioning Profile for my test app. Here's what I did.

With the device connected to the computer, Ctrl-Click the device in Xcode Organizer, and select the option Add Device to Provisioning Profile.

Once this was complete, the iOS Team Provisioning Profile:* appeared in Xcode Organizer, it appeared on my device (Settings > General > Profiles), and it appeared in the iOS Provisioning Profile area on the developer.apple.com site.

Solution 2

Create it again by unlinking and relinking your device to the Xcode Organizer. Or better yet, create another profile manually in the provisioning portal.

Whichever you do, remember to check that the new profile appears on your device (Settings > General > Profiles) and that your apps are signed with it.

Solution 3

In Xcode 4.6, Organizer > Teams > Refresh did it for me. None of the answers above seemed to help. Specifically, refreshing in the Profiles section or Add to Portal in the device section did not work.

This also, finally, managed to add devices to the Team profile that I had entered manually.

Solution 4

None of these answers worked for me. I had deleted my iOS Team Provisioning Profile from my computer and when I went to the Apple Developer Portal, the iOS Team Provisioning Profile was there but invalid and I couldn't edit or download it. Deleting devices and re-adding devices didn't work and I didn't have a new device(!?) to register again with. This is what I had to do:

  1. Go to the Apple Developer Portal and then click on Provisioning Profiles
  2. Find the old iOS Team Provisioning Profile and delete it
  3. Go to Xcode -> Organizer -> Devices -> Provisioning Profiles and double check there is no reference to an iOS Team Provisioning Profile
  4. If you have a device plugged in, check the Provisioning Profiles under that device and double check there is no reference to an iOS Team Provisioning Profile
  5. This is the magic step I was missing. From the Organizer, go to the Editor menu and select 'Refresh From Developer Portal'.
  6. Magically a new iOS Team Provisioning Profile was created in the Apple Developer Portal which I could just download and use again with my test apps to get them on device. I had to delete any reference to old provisioning profiles from my projects, restart Xcode etc. to get it be recognized again but that's standard practice right?

Hope that helps someone. I finally found that information here in the docs under one of the troubleshooting sections:

To create the team provisioning profile using assets already in your account, open the Devices organizer in Xcode and select "Refresh from Developer Portal” from the Editor menu.

Solution 5

As mentioned in one of the answers in Refresh devices in team provisioning profile managed by Xcode 7? , you can just delete and re-add the Apple ID in the Preferences->Accounts panel, which should regenerate the xcode-managed team provisioning profiles in the Developer Center. (Other answers here and elsewhere suggest to right-click provisioning profiles, which doesn't work for me, or apply to older versions of XCode for which the answers no longer apply.)

Share:
14,136
Peter V
Author by

Peter V

Excited

Updated on June 28, 2022

Comments

  • Peter V
    Peter V almost 2 years

    I accidentally deleted the Team Provisioning Profile:* in the Provisioning Portal, what should I do now? :/

  • Peter V
    Peter V almost 13 years
    ok, I removed the iPhone from organizer and added it again, the new Team Provisioning Profile appears in General> Profiles, but Organizer says "Xcode could not find a valid private-key/certificate pair for this profile in your keychain" What now? Thanks!
  • BoltClock
    BoltClock almost 13 years
    @Val Kalinic: Are you on the same Mac where you first made the team provisioning profile? If not you need to regenerate it on that Mac. If you're alone, I think your developer certificates got busted as well, you may have to create them again. I'm not very certain on this one...
  • Peter V
    Peter V almost 13 years
    yep, my good ole MacBook :D Create again? Like just revoke and redownload? Thanks!
  • BoltClock
    BoltClock almost 13 years
    @Val Kalinic: Ah yes, I guess try that first, and if it's still not working you'll have to issue yourself a new certificate.
  • Peter V
    Peter V almost 13 years
    @BoltClock, done it, but Xcode still cant find a valid... Is there anything else I can do? If not, do I really need the Team Provisioning Profile? I mean, I can use other profiles for testing an App on the Device and then switch to a Distribution profile before using Application Loader, am I wrong? Will I be able to install iOS 5 without this profile?
  • BoltClock
    BoltClock almost 13 years
    If you don't need the Team Provisioning Profile, you can create another one of your own in the provisioning portal, and download and install it manually. You shouldn't need a provisioning profile to install iOS 5.
  • Peter V
    Peter V almost 13 years
    Thanks for the help man :) I fixed it like this: In organizer > uncheck Automatic Device Provisioning, refresh, and chek it again! :) Everything works perfect now :)) But can't then someone outside the Program install the beta iOS? o.O
  • BoltClock
    BoltClock almost 13 years
    @Vak Kalinic: Yeah, anyone with the installer can install it with iTunes or Xcode.
  • mbm29414
    mbm29414 over 11 years
    FANTASTIC!!! I had been tearing my beard out with this problem. Thank you so much!