How to install a certificate in Xcode (preparing for app store submission)

后端 未结 4 963
自闭症患者
自闭症患者 2021-01-04 05:06

I wan\'t to select my distribution profile in Code Signing Identity in the build tab of targets. But all my certificates (developer, ad hoc, ...) are grayed out

相关标签:
4条回答
  • 2021-01-04 05:27

    You can update your provisioning certificates in XCode at:

    Organizer -> Devices -> LIBRARY -> Provisioning Profiles
    

    There is a refresh button :) So if you have created the certificate manually in iTunes connect, then you need to press this button or download the certificate manually.

    0 讨论(0)
  • 2021-01-04 05:45

    These instructions are for XCode 6.4 (since I couldn't find the update for the recent versions even this was a bit outdated)

    a) Part on the developers' website:

    Sign in into: https://developer.apple.com/

    Member Center

    Certificates, Identifiers & Profiles

    Certificates>All

    Click "+" to add, and then follow the instructions. You will need to open "Keychain Access.app", there under "Keychain Access" menu > "Certificate Assistant>", choose "Request a Certificate From a Certificate Authority" etc.

    b) XCode part:

    After all, you need to go to XCode, and open XCode>Preferences..., choose your Apple ID > View Details... > click that rounded arrow to update as well as "+" to check for iOS Distribution or iOS Developer Signing Identities.

    0 讨论(0)
  • 2021-01-04 05:45

    Under

    Provisioning -> Distribution -> Distribution Provisioning Profiles

    I downloaded the desired certificate again and installed it. Now I don't see an empty file in Xcode. The build also works now (no code sign error).

    What I also did: I downloaded the WWDR and installed it, but I don't know if that was the reason (because I think it's always the same)

    0 讨论(0)
  • 2021-01-04 05:48

    In Xcode 5 this has been moved to:

    Xcode>Preferences>Accounts>View Details button>

    0 讨论(0)
提交回复
热议问题