-
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)
- Under Certificates (Production), a certificate for iOS Distribution
-
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
- You can choose Automatic for the Provisioning Profile, and under Release, just choose the relevant Identities that are listed
- Got a screenshot here: https://www.dropbox.com/s/duwpx0du98e90ir/xcode-provisioning-settings.png?dl=0
- 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.
- Setup your app to use the correct Provision Profiles and Code Signing Identity
-
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
- 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