Ios-app release should pay attention to the main points

Source: Internet
Author: User

The app release process for Android and iOS has one thing in common, which is to first sign the compiled app and upload it to the market, but the complexity of both is ice and fire. Android can be signed manually via tools integrated in eclipse, or it can be automated with ant. But the iOS app's release process is very painful.

There are two ways to publish an iOS app, called Ad_hoc, which requires pre-acquisition of the device's udid, so it's appropriate to publish within the enterprise, and the other way around is to publish it to the App Store. XCODE4 integrates these two publishing methods, in the XOCDE4 Organizer window, switch to the Archives tab, when compiled with archives, the compiled file will appear in this tab. This tab also has three buttons, validate, share, and submit, where the Validate button is used to verify that the format and signature are correct, while share is posted in the IPA format, and submit is uploaded to the App Store. The two ways of publishing can be viewed in Apple's documentation: Https://developer.apple.com/ios/manage/distribution/index.action, if it is Xode4 above, you can see here:

Http://useyourloaf.com/blog/2010/12/23/creating-iphone-ad-hoc-distribution-builds.html.

Aside from the complexity of the release process, there are a few key steps that are worth sharing.

1, after the archive compile, if the point share or submit, will prompt error: Thiskind of archive cannot be signed, if the point validate check, will prompt error: does not contain a Singl E–bundle application or contains multipleproducts. Please select another archive, or adjust your scheme to create asingle–bundle application. These errors typically include other libraries in your project, such as Cocos2d. Xcode4 the default is to compile cocos2d into a static library file with a suffix of. A, the generated archive package application under two directories, one is. app files, and one is the USR directory, which is cocos2d compiled. a file, So the checksum will not pass. The solution is as follows, click on the project icon in Project Navigator, click the target named Cocos2d libraries in the project configuration screen on the right, and find the Skip install item in building setting. Change the value to Yes.

2, when you need to use the Apple push function in the project, need to add a entitlements.plist file, through the Xcode Add File Wizard can be added to the project this file. If you need to publish in the IPA format, when you click Validate or share when the archive compilation is complete, the following error occurs: This bundle is invalid. The Application-identifier entitlement IsNot formatted correctly, please fill in the contents of the corresponding Entitlements.plist file.

3. If you want to publish to AppStore, click the Submit button and start uploading the file, if application failed codesign verification appears. The signature was Invalid,or it wasn't signed with an IPhone distribution certificate such an error, if you have confirmed that the AppStore signature has been used correctly, Please check the Code Signing entitlements option in building setting, here is the path that does not need to fill in any file, this is AppStore and ad_hoc the biggest difference.

Ios-app release should pay attention to the main points

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.