DEV Community

Cover image for Setup iOS Account for Production
Saad Alkentar
Saad Alkentar

Posted on

Setup iOS Account for Production

Have you ever tried to publish an iOS app for yourself / a company/ a client? or maybe you are a DevOps trying to setup an iOS build pipeline for Bitrise, Bitbucket, AWS CloudFormation, or some other DevOps platform?
It simply asks for a certificate and a profile, but how to get them? well, I'm trying to help you obtain the required certificate and profile for publication
Let's dive in

Create a distribution certificate

I'll divide the operation into steps, let's start at the beginning

  1. Create a certificate request from authority
  • Open Keychain Access: Command + Space -> type keychain
    Open Keychain

  • Create a certificate request from the main app menu
    Create certificate request

  • Use your email address and choose to save the request to disk
    Save certificate request to disk

  1. Open the used Apple Developer account https://developer.apple.com/account

  2. Choose the correct account namespace (if it has many)
    Choose namespace

  3. Choose Certificates
    Choose certificates

  4. Create a new certificate
    Create a certificate

  5. Select distribution certificate (Apple or iOS)
    Select certificate type

  6. Then use the certificate request created before
    Select certificate request

  7. Memorize the certificate expiration date, since we don’t have control over the certificate name, and download it
    Certificate details

Create a profile

  1. From the Apple Developer account, choose profiles and create a new one
    Create a profile

  2. Choose the distribution ad-hoc profile
    Profile type

  3. Select the App ID
    Select app ID

  4. Select the certificate you created before (make sure using the expiration date)
    Select the certificate

  5. Select all devices to be tested on
    Select devivces

  6. Name the certificate, something like UserName-AppName profile
    Naming the certificate

  7. Download the profile
    Download the profile

Setup the project

  1. Select the project, and choose the “Signing & Capabilities” tab
    Signing and capabilities

  2. From the provisioning profile, choose “Import profile.”
    import profile

This should be it. If you have any issues with the new profile, you can enable “Automatically manage signing” and disable it again to allow XCode

We will continue on more tips for iOS in coming tutorials so
Stay tuned 😎

Top comments (0)