IPhone development entry (11)-publish a program on the App Store

Source: Internet
Author: User

The program has finally been compiled. This time, we will introduce the application release process. Use App Store to publish your programs to the world.

Preparations

Before registering your own program with the App Store, you must prepare the following items.

  • 57x57 pixel ICON
  • 512x512 pixel ICON (JPEG or TIFF Format)
  • Screen
Create ICON

The two icons are the App icon (57 × 57) on the device and the App Store icon (512 × 512) on iTunes ). For example, the two icons below.

Note that small icons (57x57) can be in PNG format, while large icons (512x512) can be used in App Store) it must be in JPEG or TIFF format. Small icons are included in the program file as program resources during program compilation, and large icons need to be logged on to the App Store in other ways.

Set the ICON used in the program

First, set the small icon used in the program. The name of the image file is "icon.png 」. Open the Xcode project of the program, drag the icon file to the "Resources" directory on the left.

In the displayed dialog box, select copy to target group folder (if necessary) and confirm that the following "add to target" is selected. Click Add.

After the ICON is added to the project, you need to set it as the ICON of the application. Click Info. plist in the Resources folder and enter the image name "icon.png" in the "Icon filepath" table 」.

In this way, you have completed the settings of the library icon in the program and will be able to display it after compilation.

Screen capture

The screen can be captured by Xcode organizer. When the device is connected, select the "Screenshot" tag from the organizer.

Click "Capture" in the lower-right corner to automatically Capture the screen of the connected device. So you can click this button when the application starts. After capturing the image, you can drag it to a proper place to save it. Select JPEG as the format.

Name the program

It is very important to give a good name to the program. The changed name is displayed under the program icon on the main screen. The name should not be too long; otherwise it will be omitted. Whether the language is English or Chinese is irrelevant.

Change name

By default, the program name is the same as the project name. When you need to change the configuration, edit the Info. plist icon. The "Bundle displayname" indicates the name of the application.

Other settings

Let's see what information can be set in Info. plist.

  • Select the App Store in that language based on the interface language of the program and use "Localization native development region 」. Select "Japan 」.
  • To differentiate the applications developed by the author, select different keywords using "com. yourcompany" in "Bundle identifier. Select your own unique content as much as possible.
  • Set the version information of the program in Bundle version, for example, "1.0" was first published 」.

Create distribution build

Apps published in App Store are different from those tested in iPhone or simulator. It must be compiled using the distribution build method. The same as the previous compilation method, you also need to create Provisioning.

Create Provisioning

Similar to the previous Provisioning creation method, the iPhone Dev Center jumps to the Program Portal page and is set in the following order.

Registration Certificate

Select Certificates on the left and double-click Distribution 」.

In the same order as the certificate of the last registered device, select a file and register. Download the certificate after completion.

Create Provisioning Profile

As described above, select Provisioning on the left and double-click Distribution 」. Set "Distribution Method" to "App Store", enter the content set in the previous step, and click Submit to download the created Provisioning Profile.

Project Settings

To create a distribution build, you must add a new compilation target to the project. Click the "components" tab in "project"> "Project Settings" from the Xcode menu.

Select "Release" in the table, click "Replicate partitions" next to it, generate "Copy of Release", and change its name to "Distribution 」. Click the "compile" tab and select "Distribution 」.

Finally, you need to select the Provisioning Profile you just installed on the "Any iPhone OS Device" project.

Compile

Return to the main Xcode window. Select Device for the Active SDK and Distribution for the Active component 」. Because the files compiled with distribution cannot be used directly on the device, we cannot select "compile and execute", but simply click the "compile" button under the "compile" menu of Xcode.

After compilation, the "Distribution-iphoneos" directory is generated in the "build" folder under the project directory. The file suffixed with app is the compiled program file. Right-click the file and select "compress as" (project name). app "」.

Then, a compressed file with the suffix zip will be generated under the same directory.

Publish a program to the App Store

To publish an application to the App Store, you need to use iTunes Connect.

Connect to iTunes Connect

Select the "Distribution"> "App Store" tab in the Program Portal. Click "Learn More" in the App Store project, and then click "Go to iTunes Connect" to Connect.

Publish Program

Manage Your Application on the right 」. Click Add New Application on the next screen 」.

If your program is released for the first time, you need to set the language and developer name of the program. The developer name is the name displayed in the upper right corner when you Connect to the App Store using iTunes Connect. This name can be the name of the company and the name of the sending team, or the unique brand of the program you are developing. These two settings cannot be changed later, so you need to be careful. In the following figure, check whether your program needs to be encrypted. Generally, select "No 」. In the next screen Overview, enter other program information. bold fonts are required.

  • Application Name-program Name
  • Application Description-program Description
  • Device-the corresponding Device. Select a device
  • Primary Category-program Category
  • Copyright-Copyright, developer name, and other information
  • Version Number-the Version of the program in the App Store. It is generally the same as the version set in the program.
  • SKU Number-product Number. If you develop multiple programs, do not repeat them with other programs.
  • Support URL-the URL of the technical Support in App Store
  • Support Email Address-Email Address

Upload the prepared file in the next image "Upload.

  • Application-compiled Application Files (compressed files with the suffix zip)
  • Large 512x512 Icon-512x512 pixel Icon file
  • Primary Screenshot-screen File

Select and click Next.

In the next "Pricing" screen, set the release date of the program and the country of the release.

  • Availability Date-the Date when the application is released. If you do not know, the default value is the upload date.
  • Price Tier-Price of the application. Select "Free" for Free 」

Here, you need to pay attention to one thing when setting the release date. Because the uploaded program entity cannot be immediately published to the App Store, it must be reviewed by internal detection personnel. Only those that pass can be uploaded to the App Store. This review takes about two weeks. The uploaded information will be displayed based on the release date you set. Therefore, if you set the release date as the upload date, the advertisement is displayed (displayed on the homepage of the App Store), but the actual program cannot be downloaded. When it comes to real downloading, your ads have become obsolete, reducing the chance of being clicked. Therefore, it is generally better to set the release date than the upload date in week 2/3.

On the "Localization" page, you can set some program descriptions that are unexpected by default language.

After all the settings are complete, check in the "Review" page. If there is no problem, upload it. Then, it will return to the "Manage Your Application" page. You can check whether the program is added to the list. If the Status is "In Review", it indicates that your program is under Review. After the Review is completed, the Status changes to "Ready for Sale" when you wait for the release, to the release date set earlier, is automatically released.

If the Status is Pending Contract, it indicates that an error occurred while applying for the account in the iPhone Developer Program. If the Status persists, you can contact the ADC to find out the cause.

IPhone development expert

So farIPhone DevelopmentThe series is coming to an end. It would take a long time to become an expert in the iPhone development field. However, we have learned the minimum environment setup, simple program development, and the basics of Objective-C language. For a good program (a profitable program) on the iPhone, sometimes you don't need a high Program Development Foundation, as I mentioned in the first time, it is important to have good ideas.

Next, I will give a more in-depth introduction to the skills and knowledge in the iPhone development process. Hope to get your attention

From: Yi Feiyang

Related Article

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.