Enterprise Account Update App

Source: Internet
Author: User

Enterprise Account Version Update summary reference:
Http://jingyan.baidu.com/article/a3aad71aa5fbfbb1fb0096b1.html



1. Packing Ipa,plist
Tool: Xcode6
Certificate: Enterprise-Class Development certificate


1.1) xcode6 Start Enterprise packaging is not generated plist, you need to write: template See below:


<?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE plist Public "-//apple//dtd plist 1.0//en" "Http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
<plist version= "1.0" >
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string> (here is the path to the IPA file, the HTTP path is available) </string>
<key>new item</key>
<string></string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>c (this name is viewed in Xcode) </string>
<key>bundle-version</key>
<string>1.1 (app version, in Xcode) </string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string> (here is the name of the app) </string>
</dict>
</dict>
</array>
</dict>
</plist>




2. Select HTTPS Server
The plist file must be placed on an HTTPS server.
Here the use of seven cattle free domain name, need to go to seven cattle website registration.
Registered Address: https://portal.qiniu.com/



3, Upload ipa,plist

After the registration is completed, there will be a free HTTP domain name can be used;
In the domain name settings-https in the application of an HTTPS domain name, here need to submit a photo of the document, waiting for review, the normal day of approval through;








After approval, upload the plist file and the IPA file to space (IPA can also be used on other HTTP services)






In the inverted triangle to the right of the file name, you can view the HTTP access address:
Http://7wy3rr.com1.z0.glb.clouddn.com/****.plist


The access address to switch to HTTPS is:https://dn-***.qbox.me/****.plist (if HTTPS is requested)






4. Code processing
4.1) Determine if the version is up to date in the code
Get Current version:nsdictionary*localdic =[[NSBundleMainbundle]infodictionary];

nsstring *currversion =[localdic objectforkey:@ " Cfbundleshortversionstring "];
Get Latest Version: Local database save latest version number


4.2) Update Version
#define APP_DOWNLOADURL @"Itms-services://?action=download-manifest&url=https://dn-*****.qbox.me/gssales.plist"

Nsurl*url = [Nsurlurlwithstring:App_downloadurl];
[[uiapplication sharedapplication] openURL: url];


5), the cause of the error
5.1) process launch failed:timed out waiting for app to launch

1, determine whether the plist outside the chain is available, directly to which https outside the chain in the browser open, if you can directly real plist content, this can be explained that this link is no problem.
2, plist inside the address configuration, upload the network disk, generate HTTPS outside the chain, and then on the Apple phone input
Itms-services:///?action=download-manifest&url=https://xxxxxx.qbox.me/xxxxx.plist
Replace the red part with your outer chain so you can download the app directly,
If the first step is correct, the second step does not download, indicating that plist may have a problem

If the download effect occurs, but the installation fails during the download, it may be a problem with your app certificate.
5.2) Installation Failure
1, network reason Download IPA pack times wrong switch Other network attempt rotor [email protected] Aoliao

Enterprise Account Update App

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.