renewing provisioning profile and certificates

后端 未结 3 1709
囚心锁ツ
囚心锁ツ 2020-12-13 16:39

I have 2 iOS certificates - one for development and one for distribution (App Store). Both are expiring in 2 weeks. I am on Xcode 4.4.1. I have 2 development provisioning

相关标签:
3条回答
  • 2020-12-13 16:42

    OK - I think I've fixed this. Here is what I did and it seems to work - when I upload the next release I'll know for sure.

    • In X-Code, I deleted all of my provisioning profiles
    • I then quit out of X-Code
    • From the Development Portal, I revoked my developer and distribution certificates
    • I created new keys using the Key Chain application
    • Still in Key-Chain, I removed my old, soon to be expiring key/certificate
    • Back on the Development Portal, I created new certificates
    • Still on the Development Portal, I was able to edit all of my provisioning profiles and associate the correct new certificate to it
    • I downloaded the new profiles
    • I then followed this link's advice and worked around the apparent bug in X-Code to remove the old provisioning profiles from my project: Codesign error: Provisioning profile cannot be found after deleting expired profile
    • Started X-Code back up and copied the provisioning profiles into Organizer
    • Built for a device and tested OK.
    • Built for IOS Device as though I'm preparing to upload to the AppStore and build was successful. I haven't tried uploading to the store.

    I actually did the steps twice, once for the development profiles and then once that worked/tested on my test devices, I modified the distribution profiles.

    These set X-Code up w/ no warning and Organizer now shows all my valid provisioning profiles that won't expire for another year. Hopefully, next year, if I don't forget these steps, I'll be able to do it a bit more quickly.

    0 讨论(0)
  • 2020-12-13 17:03

    An easier way of doing it is ...

    My certificate had expired, so the renew button button in the Xcode Organizer did not work.

    I did the following:

    • logged into the iOS provisioning portal
    • went to provisioning profiles > distribution
    • clicked on each of the expired profiles and clicked edit
    • the certificate radio button was unchecked because my certificate had expired, so I checked it and clicked generate
    • you'll then be prompted to download the newly generated profile.... dont!
    • wait about 5 minutes
    • go into the Xcode Organizer > provisioning profiles and click refresh
    • the profiles should then change from "expired" to "valid"
    0 讨论(0)
  • 2020-12-13 17:06

    I had a similar problem after I recently renewed my certificate.

    The following corrected the issues for my Development Provisioning Profile:

    • Click Refresh in Xcode Organizer.
    • Ensure the Code Signing build settings for your Project and Target are set to the proper Provisioning Profile. You should select iPhone Developer to avoid future issues.
    • Optionally, remove expired profiles from Device tab in Xcode Organizer.

    The following corrected the issues for my Distribution Provisioning Profile:

    • Log in to your iOS Developer Portal
    • Go to the Distribution tab under Provisioning
    • Create a new distribution profile.
    • After the profile is generated, click Refresh in Xcode Organizer
    0 讨论(0)
提交回复
热议问题