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

前端 未结 8 1586
情书的邮戳
情书的邮戳 2021-02-06 13:17

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

8条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 13:53

    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.

提交回复
热议问题