How to publish an APP with an apple enterprise account-Distribution of apps through your own website

Source: Internet
Author: User
Tags key string

How to publish an APP with an apple enterprise account-Distribution of apps through your own website

 

1. Apply for a certificate through an enterprise account
  • 1 Certificate Signing Request (CSR) File

In the Mac system, go to "key string access", select "key string access"-"Certificate assistant"-"request certificate from the certificate authority ...", 1:


Key string request Certificate

-> Fill in the first two items and select "store to disk".

 
  • 2. Request a Certificate
    Login https://developer.apple.com->MemberCenter->Certificates, Indentifiers & Profiles->Certificates, As shown in 3:

 

-> click the plus sign in the upper right corner to add a certificate:


 

-> Select In-House and Ad Hoc, and click Continue


 

-> 6: Select Choose File and upload the CSR File in step 1. Click generate to generate the cer certificate. After downloading the certificate, double-click Security (enter the Mac password)


 
  • 3 App ID

Click the plus sign in the upper right corner


 

-> You need to fill in two items . You can enter the name as the description. bundleID must be exactly the same as the bundleID of the APP . As for App Services, select as needed. Last click Continue-> submit-> done


 
 
  • 4. Generate the final Provisioning Profile (the Enterprise Edition does not need device, that is, the iPhone's UDID. Therefore, skip this step)

Select Provisioning Profile-> ALL and click the plus sign in the upper right corner:


 
 

-> Select the created AppID and click Continue, as shown in 12:


 

-> Select the cer certificate and click Continue. . Name the generated Profile file for your convenience. Click Generate, and double-click Download. Now the certificate process is complete


Ii. Package ipa and manually generate plist

Before this step starts, you need to insert your phone into your computer and select the real machine as the debugging option. (To prevent Archive failure). If there is no real machine, you can select iOS Device (this is not tested ).

1. Package ipa
  • 1.1 Edit scheme

Use Xcode to open the corresponding APP. Product-> Scheme-> Edit scheme. Enter the Archive name, which is the name of the packaged ipa


 
  • 1.2 select the certificate, that is, the certificate generated just now

 
  • 1.3 Archive, Product-> Archive, and operate on images 16 and 17 (select Save for Enterprise Deployment ):

 
 

An ipa package is generated.

3. Publish an APP

A plist file is required for release. A plist file is automatically generated before Xcode6, but after Xcode6, we need to create a plist file by ourselves. At the end of the article, a plist template is provided, copy and rename it to plist.  Three URLs are available, including ipa and size icons. 1 (ipa), 2 (big image), 3 (small image) Fill in our own generated URL, will put ipa and big icons on our own server, when you use Safari to open a plist, the ipa and size icons will be downloaded and installed based on the URLs 1, 2, and 3 in the plist.


 

Where can plist be stored (that is, what is the URL for Safari to open plist )? Apple has requirements on plist storage address, must be https, if there is no https site, we can put plist in https://git.oschina.net.

The specific method is to create a project (not private) above, then upload the edited plist to the project, and assign the plist URL value, for example, https://git.oschina.net/waitwait/companytest/blob/master/mddtest.plist. Then, in Safari, enter:itms-services:///?action=download-manifest&url=https://git.oschina.net/waitwait/companytest/blob/master/MDDTest.plistYou can install it (Safari will parseitms-services:///?action=download-manifest&url=).

Note: Some simple friends say that oschina's https cannot be used. In fact, public https links are often blocked. You can try github, Baidu cloud, and qiniu cloud storage. In addition, it is best to use your own

The Safari operation process is as follows:

  • 1 Safari parses the string we entered and finds the plist File
  • 2. download and install the ipa package based on the information provided in the plist file, and access the size icon. The size icon is displayed when the ipa package is being downloaded. After the download is complete, the built-in icons are displayed.
  • After the download and installation, if you want to open the program, you also need to select the corresponding certificate trust in the phone Settings> General> description file and device management (different systems may have different names, can open the program

The following is the text form of the plist template. Copy it to the text and rename it. plist. Use Xcode to open it and edit it as prompted.

<? 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> ipa package URL (required) </ string>
                </ dict>
                <dict>
                    <key> kind </ key>
                    <string> full-size-image </ string>
                    <key> needs-shine </ key>
                    <false />
                    <key> url </ key>
                    <string> Large image during download (not required) </ string>
                </ dict>
                <dict>
                    <key> kind </ key>
                    <string> display-image </ string>
                    <key> needs-shine </ key>
                    <false />
                    <key> url </ key>
                    <string> Thumbnail when downloading (not required) </ string>
                </ dict>
            </ array>
            <key> metadata </ key>
            <dict>
                <key> bundle-identifier </ key>
                <string> BundleID (required) </ string>
                <key> bundle-version </ key>
                <string> 1.0 </ string>
                <key> kind </ key>
                <string> software </ string>
                <key> subtitle </ key>
                <string> Subtitle (not required) </ string>
                <key> title </ key>
                <string> Application name (required) </ string>
            </ dict>
        </ dict>
    </ array>
</ dict>
</ plist>
 

Author: Time static
Link: http://www.jianshu.com/p/0418f5051185
Source: Simplified book
Copyright belongs to the author. For commercial reprint, please contact the author for authorization. For non-commercial reprint, please indicate the source.


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.