Tuesday 31 May 2016

ionic iOS App Publishing

ionic iOS Publishing:
If you want publish app in app store First, you need to enroll in Apple Developer Program. need to buy account with $99(yearly).
Connecting Xcode with your developer account :
After you receive your developer account, open Xcode on your Mac and go to Preferences -> Accounts and add your account to Xcode by clicking the + button on the lower left hand side, and follow the instructions:

Click on View Details when you click on view details button will get below popup

Now you can click on create button for ios distribution. then the create option will disappear and you can see below image.

Now you can click on download and then done button.
You can find the certificates in you keychain access in certificates. see below image.

                                   
All team members can create their own development certificate. Only a team agent or admin can create a distribution certificate.

Verifying Using Your Developer Account:
    1. Sign in to developer.apple.com/account, and click Certificates, IDs & Profiles.
    2. In the Certificates section of the sidebar, select Development or Production depending on the type of certificate you want to verify. The type and expiration date of the certificate should match the information that you view in Keychain Access.
Exporting and Importing Certificates and Profiles:
The export file, called a developer profile, contains the following team assets:
  • Development certificates
  • Distribution certificates
  • Provisioning profiles
You can also export selected certificates to share with other team members. In this case, the export file contains just the certificates you select.

Exporting Your Developer Profile

Because the developer profile represents your credentials to sign and submit apps to the store, Xcode encrypts and password-protects the exported file.
To export your developer account assets
  1. Choose Xcode > Preferences.
  2. Click Accounts at the top of the window.
  3.  Click the Action button (the gear icon to the right of the Delete button) in the lower-left corner, and choose Export Developer Accounts from the pop-up menu.
4. Enter a filename in the Save As field and a password in both the Password and Verify fields. The file is encrypted and password protected.
5. Click Save. The file is saved to the location you specified with a .developerprofile extension.
6. In the dialog that appears, click OK.

Exporting Selected Certificates
To export a few certificates and exclude the profiles, select the certificates in the details dialog.
To export selected certificates
    1. Choose Xcode > Preferences. 
    2. Click Accounts at the top of the window.
    3. Select the team you want to view, and click View Details. 
    4. Control-click the certificate you want to export in the Signing Identities table and choose Export from the pop-up menu.
5.Enter a filename in the Save As field and a password in both the Password and Verify fields.The file is encrypted and password protected.
6.Click Save.The file is saved to the location you specified with a .p12 extension.

Importing Your Developer Profile
You import your developer profile to restore missing private keys or when you want to switch to another Mac.

To import your developer account assets
  1. Choose Xcode > Preferences. 
  2. Click Accounts at the top of the window.
  3. Click the Action button (the gear icon) in the lower-left corner, and choose Import Developer Accounts from the pop-up menu.
4. Locate and select the file containing your developer profile, and click Open. The file should have a .developerprofile extension.
5. Enter the password you used to encrypt the file, and click OK.
6.In the dialog that appears, click OK.
Now you can able to create development profile.