IPhone development entry: publish a program on the App Store

Source: Internet
Author: User

Preparations

Before registering your own program with the AppStore, you need to 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 icon 512 × 512 on the iTunes AppStore ). For example, the two icons below.

Note that small icons 57x57) can be in PNG format, while large icons 512x512 on AppStore 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 AppStore 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.pdf" under the resourcesfolder and enter the image name "icon.png" in the "iconfile.pdf" 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 value, edit Info. plist when setting the icon. "Bundledisplayname" indicates the name of the application.

Other settings

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

Select the AppStore of the language based on the interface language of the program and use "Localizationnativedevelopmentregion 」. Select "Japan 」.

To differentiate the applications developed by the author, select different keywords using "com. yourcompany" in "Bundleidentifier. Select your own unique content as much as possible.

Set the version information of the program in Bundleversion, for example, "1.0" was first published 」.

Create distributionbuild

Apps released on the AppStore are different from those tested on the iPhone or simulator. It must be compiled using the distributionbuild method. The same as the previous compilation method, you also need to create Provisioning.

Create Provisioning

Similar to the previous method of creating Provisioning, the iPhone devcenter jumps to the ProgramPortal 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 ProvisioningProfile

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

Project Settings

To create a distributionbuild, 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, select the installed ProvisioningProfile in the AnyiPhoneOSDevice 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 distributionbuild 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 AppStore

To publish an application to the AppStore, you need to use iTunesConnect.

Connect to iTunesConnect

Select the "Distribution"> "AppStore" tab in ProgramPortal. Click "LearnMore" in the AppStore project, and then click "GotoiTunesConnect.

Publish Program

Click "ManageYourApplication" on the right 」. Click AddNewApplication 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 in the upper-right corner when connecting to the AppStore with iTunesConnect. This name can be the name of the company and the name of the issuing 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.

ApplicationName-program name

ApplicationDescription-program description

Device-the corresponding Device. Select a device

PrimaryCategory-program category

Copyright-Copyright, developer name, and other information

VersionNumber-the version of the program on the AppStore. It is generally the same as the version set in the program.

SKUNumber-product number. If you develop multiple programs, do not repeat them with other programs.

SupportURL-the URL of the technical support in AppStore

SupportEmailAddress-email address

Upload the prepared file in the next image "Upload.

Application-the compressed Application file with the suffix zip)

Large512x512Icon-512 x 512 pixel icon file

PrimaryScreenshot-screen File

Select and click Next.

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

AvailabilityDate-application release date. If you do not know, the default value is the upload date.

PriceTier-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 AppStore, it must be reviewed by internal detection personnel. Only those who pass the application can be uploaded to the AppStore. 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 on the homepage of the AppStore, 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 "ManageYourApplication" page. You can check whether the program is added to the list. If the Status is "InReview", it indicates that your program is under review. After the review is completed, the Status changes to "ReadyforSale" when you wait for the release. The release date is set, is automatically released.

If the Status is PendingContract, it indicates an error occurred while applying for the account in the iphonew.program. If the Status persists, you can contact the ADC to find out the specific cause.

IPhone development expert

So far, the iPhone development starter series has come 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 program with a good program on the iPhone to make money), 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.

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.