Mac app distribution in App Store

Source: Internet
Author: User

MacProgramThe upload of a large package is somewhat different from that of iOS, because the Mac app can be uploaded to the store or not downloaded by the store. Therefore, Code Sign and provision should be created based on the situation (development, release <store or non-store>. After the program is packaged, the feasibility of the verification program is also different. Below, we will record some key points.

 

Basic concepts:

1. Member permissions:

There are three types of members:

AGENT: account with the highest permissions. You can create a developer, Mac installer, Mac app, developer ID app, and developer ID installer certificate.

Admin: You can create developer, Mac installer, and Mac app certificates.

Member: only developer certificates can be created.

2 certificate:

Development:

Development certificates that can be created by members of the team. As long as they are used in the development stage, they are generally used for debug version development.

Distribution:

(1) App Store:

To store an app, you need to create a Mac app and a Mac installer certificate. Mac apps are mainly used for uploading to the store. installer is used to simulate the real store environment before uploading to the store.

(2) Developer ID:

Apple allows developers to spread apps on their own. This requires the developer ID certificate, which can be either app or installer. Note that this certificate can only be created by the agent and only one team.

The certificate generation method is the same as that in IOS. You can follow the instructions on the official website to perform one step operation.

 

3 System

Register the hardware Number of the computer

 

4app IDs and provision

Like iOS, follow the webpage prompts. After provision is created, drag it to xcode. The developer provision will also be installed on the computer. When creating an app ID, consider whether you need iCloud or apns. We recommend that you configure all of these before creating provisions. Otherwise, if the app ID is modified, the previous provision will be affected. If you really need to modify the app ID, we recommend that you delete the old provisons (including files installed on your computer and xcode) and then install the new provision. In addition, the developer provison can be installed on a computer (because it contains system information), and the production can only be installed in xcode.

By the way, paste the relationship between provison and ID, certificate, and system:

In addition, note that sometimes, after the certificate is downloaded and added, there will be no key in the keychain, indicating that the certificate is faulty. I usually encounter a situation that is caused by the installation of multiple certificates. In this case, the revoke certificate is usually used to re-create the solution.

The following describes the steps of the app uploaded to the store. For more information, see the official documentation.

 

Before uploading, make sure that the MAC app and Installer certificates are generated and the production provisions is ready.

In addition, there are some preparations for the program itself, such as setting the app icon and deployment target, which are the same as those for iOS apps. Since we want to upload data to the store, we must enable sandbox.

Because sandbox permissions are controlled by entitlement

Select the options under Network, hardware, and apps based on your needs. After the selection, the corresponding key value is automatically generated in the corresponding entitlement file.

Next, select target and select the appropriate provisons under Code Sign (note the options under debug and release ). If you find that the xcode option is not available after provision is installed, restart xcode.

Before the archive installation package is created, check whether the schema settings are correct:

The archive configuration must be release.

Next, we will select the archive function under xcode. After completion, the organizer-archives window will pop up. There is a distribute button on the right. CLICK:

 

1 submit: Upload data to the store. Remember to create an app in iTunes connect, select next, and submit the following information to xcode.

2 Export developer: This is a distribution not on the store.

3 export as:, there are 3 options.

Before uploading to store, we must test the installation process to ensure that the program can be correctly installed. In this case, you can select export as paskage to generate an installation package. Note that you need to select the insaller certificate at this time, starting with your team name, under "identities without profiles. Run the following command:

Sudo installer-store-PKG path-to-package-target/

(-Store is installed on the app store)

The generated app is installed under/application. You can view it on your own.

After running the test, you can submit it to the app store.

(Xcode 4.5 4g182, OS X 10.8.2 1216a)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.