Use Xcode 4 to publish an App instance

Source: Internet
Author: User

UseXcode 4ReleaseAppInstance operations are described in this article. If we do not talk about them much, we will go directly to the topic.

1. iOS Provisioning Portal and iTunes Connect remain unchanged. download and install the. leleprovision file and the previous one.

2. Xcode 4 integrates All in One tools with Organizer and Application Loader. Xcode4 has the concept of Run/Build Scheme, indicates the options of previous compilation, such as device/simulator and iOS version. When releasing an application, you need to select iOS Device:

Click Edit Scheme... to Edit the Archive option. Its default compilation configuration is Distribution and the Archive is displayed in Organizer:

3. Check the compilation configuration file: product name, info. plist, version, Target Device Family, iOS Deployment Target, Code Signing Identity etc. (This is consistent with Xcode 3. x ).

4. Choose "Product"> "Archive", and then the Organizer will pop up automatically.

The Archive package is used to upload data to the AppStore.

Xcode4 frees you from worrying about where the compiled and released packages are. You only need to manage them in Organizer.

Of course, you can configure the storage location of the program in XCode> Preferences> Locations tab.

5. Select Archive in Organizer to verify and upload the file.

 
 
  1. Validate and submit your app to AppStore 

6. After the App is successfully uploaded, the Archive status changes to submitted.

Note: During the AdHoc version, the Validate and Share your app will generate a. ipa file for real machine testing.

Note the following:

After Archive compilation is complete, the following situations occur when you verify the data by clicking Validate:

"Project name" does not contain a single-bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single-bundle application.

It turns out that cocos2d is compiled into one by itself in XCode4 environment. a file (generally, when a program is released, there is only one file suffixed with the app in the compiled application directory), cocos2d project, the application in the compiled archive contains two directories. there is also a usr directory in the app file, which is compiled by cocos2d. file a, so it will not pass the verification ......

The solution is as follows:

BackXCode4And then click the leftmost button (a bit like the folder icon), click the project root directory, there are two options in the right column, project, and Targets. Targets has two options: Project and cocos2d Library (cocos2d libraries). Click cocos2d libraries and select Build Settings on the right, find the skip install in the Deployment group, and show the compilation types: debug, distribution, and Release. The default values of the three options are NO, change the value of Ditribution to YES. then, re-compile the product --- archive on the main menu of XCode4. After the compilation is complete, right-click the compiled project, show in finder, and find the applicaition directory, check whether there is a usr directory missing from the difference before this option is changed.

Summary: UseXcode4ReleaseAppI hope this article will help you with the introduction of instance operations!

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.