Skip to content

Instantly share code, notes, and snippets.

@cheeming
Last active October 15, 2015 08:27
Show Gist options
  • Save cheeming/4d689049b87249caaff9 to your computer and use it in GitHub Desktop.
Save cheeming/4d689049b87249caaff9 to your computer and use it in GitHub Desktop.
Publishing your iOS app to iTunes

Publishing to iTunes

  • Login to https://developer.apple.com/

    • Click on iOS Dev Center
    • Click on Certificates, Identifiers & Profiles
    • Ensure that there is:
      • Under Certificates (Production), a certificate for iOS Distribution
        • To create a Certificate (Signing Identity), one needs to create a Certificate Signing Request
        • You can do this with Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority
        • The Certificate comes with private key and public key, normally the private key would be stored in the machine that generated the initial request
        • To ensure all the certificates and profiles are exported properly to a new machine, you can use Xcode to export the developer profile
      • Under Identifier, an App ID for your new app
      • Under Provisioning Profiles (Production), a Provisioning Profile for the relevant App ID
        • Each Provisioning Profile is tied to a Certificate (Signing Identity)
  • Open Xcode and add your iOS Developer account, Preferences > Accounts

    • The provision profiles and etc should be automatically downloaded and added to Xcode
    • If you can't find the relevant items there you can download from developer.apple.com and load it manually
  • Login to https://itunesconnect.apple.com/

    • Go to My Apps, and add New iOS App and follow the steps.
  • Open Xcode

    • Setup your app to use the correct Provision Profiles and Code Signing Identity
    • Click Product > Build. If no issues, then click Product > Archive.
    • And you will be shown the Organizer.
      • Click Validate and follow the steps.
      • Once that is successful, you can click Submit, and follow the steps.
  • Using TestFlight in iTunes

    • When you submit for TestFlight in iTunes, it takes a while to process the binary
    • User needs to have TestFlight app installed on device
    • Please invite the user with the email that they use for iTunes

Exporting Certificate for Push Notification

  • Use the machine that generated the certificate request
  • Open Keychain Access app
  • Search for certificates with push
    • You should look for 3 things a certificate, a public key and a private key
    • It would have the following in their names:
      • Apple Production IOS Push Services
      • Push Notification
    • Right click on each and export the out
    • For the private key, they would require a password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment